Class TimestampFactory
Defines a class for generating unique 21-digit timestamps. Timestamps will be returned in Coordinated Universal Time (UTC). An example of a timestamp is '201805282026441234567', generated on May 28, 2018 at 20:26:44.
Inheritance
System.Object
TimestampFactory
Inherited Members
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.ToString()
Namespace: Juhta.Net.Common
Assembly: Juhta.Net.dll
Syntax
public class TimestampFactory
Remarks
This class is thread-safe.
Constructors
| Improve this Doc View SourceTimestampFactory()
Initializes a new instance.
Declaration
public TimestampFactory()
Methods
| Improve this Doc View SourceGetUniqueTimestamp()
Gets a 21-digit unique timestamp.
Declaration
public string GetUniqueTimestamp()
Returns
Type | Description |
---|---|
System.String | Returns the unique timestamp that was given to the calling thread. |