Struct WolfTimestamp
  
  Represents a WOLF Timestamp.
 
  
  
    Implements
    
    System.IEquatable<System.DateTime>
    System.IEquatable<System.Int64>
    
    System.IComparable<System.DateTime>
    System.IComparable<System.Int64>
    System.IConvertible
   
  
  Assembly: Wolfringo.Core.dll
  Syntax
  
    [JsonConverter(typeof(WolfTimestampConverter))]
[TypeConverter(typeof(WolfTimestampTypeConverter))]
public struct WolfTimestamp : IEquatable<WolfTimestamp>, IEquatable<DateTime>, IEquatable<long>, IComparable<WolfTimestamp>, IComparable<DateTime>, IComparable<long>, IConvertible
   
  
  
  Constructors
  
  
    |
    Improve this Doc
  
  
    View Source
  
  
  WolfTimestamp(DateTime)
  Creates a new WOLF timestamp equal to provided DateTime.
 
  
  Declaration
  
    public WolfTimestamp(DateTime value)
   
  Parameters
  
    
      
        | Type | 
        Name | 
        Description | 
      
    
    
      
        | System.DateTime | 
        value | 
        DateTime of timestamp. 
 | 
      
    
  
  
    |
    Improve this Doc
  
  
    View Source
  
  
  WolfTimestamp(Int64)
  Creates a new WOLF timestamp equal to provided value.
 
  
  Declaration
  
    public WolfTimestamp(long value)
   
  Parameters
  
    
      
        | Type | 
        Name | 
        Description | 
      
    
    
      
        | System.Int64 | 
        value | 
        Timestamp value. 
 | 
      
    
  
  Fields
  
  
    |
    Improve this Doc
  
  
    View Source
  
  Epoch
  
  
  Declaration
  
    public static readonly DateTime Epoch
   
  Field Value
  
    
      
        | Type | 
        Description | 
      
    
    
      
        | System.DateTime | 
         | 
      
    
  
  Methods
  
  
    |
    Improve this Doc
  
  
    View Source
  
  
  CompareTo(DateTime)
  
  
  Declaration
  
    public int CompareTo(DateTime other)
   
  Parameters
  
    
      
        | Type | 
        Name | 
        Description | 
      
    
    
      
        | System.DateTime | 
        other | 
         | 
      
    
  
  Returns
  
    
      
        | Type | 
        Description | 
      
    
    
      
        | System.Int32 | 
         | 
      
    
  
  
    |
    Improve this Doc
  
  
    View Source
  
  
  CompareTo(Int64)
  
  
  Declaration
  
    public int CompareTo(long other)
   
  Parameters
  
    
      
        | Type | 
        Name | 
        Description | 
      
    
    
      
        | System.Int64 | 
        other | 
         | 
      
    
  
  Returns
  
    
      
        | Type | 
        Description | 
      
    
    
      
        | System.Int32 | 
         | 
      
    
  
  
    |
    Improve this Doc
  
  
    View Source
  
  
  CompareTo(WolfTimestamp)
  
  
  Declaration
  
    public int CompareTo(WolfTimestamp other)
   
  Parameters
  
  Returns
  
    
      
        | Type | 
        Description | 
      
    
    
      
        | System.Int32 | 
         | 
      
    
  
  
    |
    Improve this Doc
  
  
    View Source
  
  
  Equals(DateTime)
  
  
  Declaration
  
    public bool Equals(DateTime other)
   
  Parameters
  
    
      
        | Type | 
        Name | 
        Description | 
      
    
    
      
        | System.DateTime | 
        other | 
         | 
      
    
  
  Returns
  
    
      
        | Type | 
        Description | 
      
    
    
      
        | System.Boolean | 
         | 
      
    
  
  
    |
    Improve this Doc
  
  
    View Source
  
  
  Equals(Int64)
  
  
  Declaration
  
    public bool Equals(long other)
   
  Parameters
  
    
      
        | Type | 
        Name | 
        Description | 
      
    
    
      
        | System.Int64 | 
        other | 
         | 
      
    
  
  Returns
  
    
      
        | Type | 
        Description | 
      
    
    
      
        | System.Boolean | 
         | 
      
    
  
  
    |
    Improve this Doc
  
  
    View Source
  
  
  Equals(Object)
  
  
  Declaration
  
    public override bool Equals(object obj)
   
  Parameters
  
    
      
        | Type | 
        Name | 
        Description | 
      
    
    
      
        | System.Object | 
        obj | 
         | 
      
    
  
  Returns
  
    
      
        | Type | 
        Description | 
      
    
    
      
        | System.Boolean | 
         | 
      
    
  
  Overrides
  System.ValueType.Equals(System.Object)
  
    |
    Improve this Doc
  
  
    View Source
  
  
  Equals(WolfTimestamp)
  
  
  Declaration
  
    public bool Equals(WolfTimestamp other)
   
  Parameters
  
  Returns
  
    
      
        | Type | 
        Description | 
      
    
    
      
        | System.Boolean | 
         | 
      
    
  
  
    |
    Improve this Doc
  
  
    View Source
  
  
  GetHashCode()
  
  
  Declaration
  
    public override int GetHashCode()
   
  Returns
  
    
      
        | Type | 
        Description | 
      
    
    
      
        | System.Int32 | 
         | 
      
    
  
  Overrides
  System.ValueType.GetHashCode()
  
    |
    Improve this Doc
  
  
    View Source
  
  
  ToDateTime()
  Gets DateTime that equals this WOLF timestamp.
 
  
  Declaration
  
    public DateTime ToDateTime()
   
  Returns
  
    
      
        | Type | 
        Description | 
      
    
    
      
        | System.DateTime | 
        DateTime representation of the timestamp. 
 | 
      
    
  
  
    |
    Improve this Doc
  
  
    View Source
  
  
  ToString()
  
  
  Declaration
  
    public override string ToString()
   
  Returns
  
    
      
        | Type | 
        Description | 
      
    
    
      
        | System.String | 
         | 
      
    
  
  Overrides
  System.ValueType.ToString()
  Operators
  
  
    |
    Improve this Doc
  
  
    View Source
  
  
  Equality(WolfTimestamp, WolfTimestamp)
  
  
  Declaration
  
    public static bool operator ==(WolfTimestamp left, WolfTimestamp right)
   
  Parameters
  
  Returns
  
    
      
        | Type | 
        Description | 
      
    
    
      
        | System.Boolean | 
         | 
      
    
  
  
    |
    Improve this Doc
  
  
    View Source
  
  
  Implicit(DateTime to WolfTimestamp)
  Converts DateTime to a WOLF timestamp.
 
  
  Declaration
  
    public static implicit operator WolfTimestamp(DateTime timestamp)
   
  Parameters
  
    
      
        | Type | 
        Name | 
        Description | 
      
    
    
      
        | System.DateTime | 
        timestamp | 
        DateTime to convert. 
 | 
      
    
  
  Returns
  
  
    |
    Improve this Doc
  
  
    View Source
  
  
  Implicit(Int64 to WolfTimestamp)
  Converts Int64 value to a WOLF timestamp.
 
  
  Declaration
  
    public static implicit operator WolfTimestamp(long timestamp)
   
  Parameters
  
    
      
        | Type | 
        Name | 
        Description | 
      
    
    
      
        | System.Int64 | 
        timestamp | 
        Int64 value to convert. 
 | 
      
    
  
  Returns
  
  
    |
    Improve this Doc
  
  
    View Source
  
  
  Implicit(WolfTimestamp to DateTime)
  Converts WOLF timestamp to a DateTime.
 
  
  Declaration
  
    public static implicit operator DateTime(WolfTimestamp timestamp)
   
  Parameters
  
    
      
        | Type | 
        Name | 
        Description | 
      
    
    
      
        | WolfTimestamp | 
        timestamp | 
        Wolf Timestamp to convert. 
 | 
      
    
  
  Returns
  
    
      
        | Type | 
        Description | 
      
    
    
      
        | System.DateTime | 
         | 
      
    
  
  
    |
    Improve this Doc
  
  
    View Source
  
  
  Implicit(WolfTimestamp to Int64)
  Converts WOLF timestamp to am Int64 value.
 
  
  Declaration
  
    public static implicit operator long (WolfTimestamp timestamp)
   
  Parameters
  
    
      
        | Type | 
        Name | 
        Description | 
      
    
    
      
        | WolfTimestamp | 
        timestamp | 
        Wolf Timestamp to convert. 
 | 
      
    
  
  Returns
  
    
      
        | Type | 
        Description | 
      
    
    
      
        | System.Int64 | 
         | 
      
    
  
  
    |
    Improve this Doc
  
  
    View Source
  
  
  Inequality(WolfTimestamp, WolfTimestamp)
  
  
  Declaration
  
    public static bool operator !=(WolfTimestamp left, WolfTimestamp right)
   
  Parameters
  
  Returns
  
    
      
        | Type | 
        Description | 
      
    
    
      
        | System.Boolean | 
         | 
      
    
  
  Explicit Interface Implementations
  
  
    |
    Improve this Doc
  
  
    View Source
  
  
  IConvertible.GetTypeCode()
  
  
  Declaration
  
    TypeCode IConvertible.GetTypeCode()
   
  Returns
  
    
      
        | Type | 
        Description | 
      
    
    
      
        | System.TypeCode | 
         | 
      
    
  
  
    |
    Improve this Doc
  
  
    View Source
  
  
  
  
  
  Declaration
  
    bool IConvertible.ToBoolean(IFormatProvider provider)
   
  Parameters
  
    
      
        | Type | 
        Name | 
        Description | 
      
    
    
      
        | System.IFormatProvider | 
        provider | 
         | 
      
    
  
  Returns
  
    
      
        | Type | 
        Description | 
      
    
    
      
        | System.Boolean | 
         | 
      
    
  
  
    |
    Improve this Doc
  
  
    View Source
  
  
  
  
  
  Declaration
  
    byte IConvertible.ToByte(IFormatProvider provider)
   
  Parameters
  
    
      
        | Type | 
        Name | 
        Description | 
      
    
    
      
        | System.IFormatProvider | 
        provider | 
         | 
      
    
  
  Returns
  
    
      
        | Type | 
        Description | 
      
    
    
      
        | System.Byte | 
         | 
      
    
  
  
    |
    Improve this Doc
  
  
    View Source
  
  
  
  
  
  Declaration
  
    char IConvertible.ToChar(IFormatProvider provider)
   
  Parameters
  
    
      
        | Type | 
        Name | 
        Description | 
      
    
    
      
        | System.IFormatProvider | 
        provider | 
         | 
      
    
  
  Returns
  
    
      
        | Type | 
        Description | 
      
    
    
      
        | System.Char | 
         | 
      
    
  
  
    |
    Improve this Doc
  
  
    View Source
  
  
  
  
  
  Declaration
  
    DateTime IConvertible.ToDateTime(IFormatProvider provider)
   
  Parameters
  
    
      
        | Type | 
        Name | 
        Description | 
      
    
    
      
        | System.IFormatProvider | 
        provider | 
         | 
      
    
  
  Returns
  
    
      
        | Type | 
        Description | 
      
    
    
      
        | System.DateTime | 
         | 
      
    
  
  
    |
    Improve this Doc
  
  
    View Source
  
  
  
  
  
  Declaration
  
    decimal IConvertible.ToDecimal(IFormatProvider provider)
   
  Parameters
  
    
      
        | Type | 
        Name | 
        Description | 
      
    
    
      
        | System.IFormatProvider | 
        provider | 
         | 
      
    
  
  Returns
  
    
      
        | Type | 
        Description | 
      
    
    
      
        | System.Decimal | 
         | 
      
    
  
  
    |
    Improve this Doc
  
  
    View Source
  
  
  
  
  
  Declaration
  
    double IConvertible.ToDouble(IFormatProvider provider)
   
  Parameters
  
    
      
        | Type | 
        Name | 
        Description | 
      
    
    
      
        | System.IFormatProvider | 
        provider | 
         | 
      
    
  
  Returns
  
    
      
        | Type | 
        Description | 
      
    
    
      
        | System.Double | 
         | 
      
    
  
  
    |
    Improve this Doc
  
  
    View Source
  
  
  
  
  
  Declaration
  
    short IConvertible.ToInt16(IFormatProvider provider)
   
  Parameters
  
    
      
        | Type | 
        Name | 
        Description | 
      
    
    
      
        | System.IFormatProvider | 
        provider | 
         | 
      
    
  
  Returns
  
    
      
        | Type | 
        Description | 
      
    
    
      
        | System.Int16 | 
         | 
      
    
  
  
    |
    Improve this Doc
  
  
    View Source
  
  
  
  
  
  Declaration
  
    int IConvertible.ToInt32(IFormatProvider provider)
   
  Parameters
  
    
      
        | Type | 
        Name | 
        Description | 
      
    
    
      
        | System.IFormatProvider | 
        provider | 
         | 
      
    
  
  Returns
  
    
      
        | Type | 
        Description | 
      
    
    
      
        | System.Int32 | 
         | 
      
    
  
  
    |
    Improve this Doc
  
  
    View Source
  
  
  
  
  
  Declaration
  
    long IConvertible.ToInt64(IFormatProvider provider)
   
  Parameters
  
    
      
        | Type | 
        Name | 
        Description | 
      
    
    
      
        | System.IFormatProvider | 
        provider | 
         | 
      
    
  
  Returns
  
    
      
        | Type | 
        Description | 
      
    
    
      
        | System.Int64 | 
         | 
      
    
  
  
    |
    Improve this Doc
  
  
    View Source
  
  
  
  
  
  Declaration
  
    sbyte IConvertible.ToSByte(IFormatProvider provider)
   
  Parameters
  
    
      
        | Type | 
        Name | 
        Description | 
      
    
    
      
        | System.IFormatProvider | 
        provider | 
         | 
      
    
  
  Returns
  
    
      
        | Type | 
        Description | 
      
    
    
      
        | System.SByte | 
         | 
      
    
  
  
    |
    Improve this Doc
  
  
    View Source
  
  
  
  
  
  Declaration
  
    float IConvertible.ToSingle(IFormatProvider provider)
   
  Parameters
  
    
      
        | Type | 
        Name | 
        Description | 
      
    
    
      
        | System.IFormatProvider | 
        provider | 
         | 
      
    
  
  Returns
  
    
      
        | Type | 
        Description | 
      
    
    
      
        | System.Single | 
         | 
      
    
  
  
    |
    Improve this Doc
  
  
    View Source
  
  
  
  
  
  Declaration
  
    string IConvertible.ToString(IFormatProvider provider)
   
  Parameters
  
    
      
        | Type | 
        Name | 
        Description | 
      
    
    
      
        | System.IFormatProvider | 
        provider | 
         | 
      
    
  
  Returns
  
    
      
        | Type | 
        Description | 
      
    
    
      
        | System.String | 
         | 
      
    
  
  
    |
    Improve this Doc
  
  
    View Source
  
  
  
  
  
  Declaration
  
    object IConvertible.ToType(Type conversionType, IFormatProvider provider)
   
  Parameters
  
    
      
        | Type | 
        Name | 
        Description | 
      
    
    
      
        | System.Type | 
        conversionType | 
         | 
      
      
        | System.IFormatProvider | 
        provider | 
         | 
      
    
  
  Returns
  
    
      
        | Type | 
        Description | 
      
    
    
      
        | System.Object | 
         | 
      
    
  
  
    |
    Improve this Doc
  
  
    View Source
  
  
  
  
  
  Declaration
  
    ushort IConvertible.ToUInt16(IFormatProvider provider)
   
  Parameters
  
    
      
        | Type | 
        Name | 
        Description | 
      
    
    
      
        | System.IFormatProvider | 
        provider | 
         | 
      
    
  
  Returns
  
    
      
        | Type | 
        Description | 
      
    
    
      
        | System.UInt16 | 
         | 
      
    
  
  
    |
    Improve this Doc
  
  
    View Source
  
  
  
  
  
  Declaration
  
    uint IConvertible.ToUInt32(IFormatProvider provider)
   
  Parameters
  
    
      
        | Type | 
        Name | 
        Description | 
      
    
    
      
        | System.IFormatProvider | 
        provider | 
         | 
      
    
  
  Returns
  
    
      
        | Type | 
        Description | 
      
    
    
      
        | System.UInt32 | 
         | 
      
    
  
  
    |
    Improve this Doc
  
  
    View Source
  
  
  
  
  
  Declaration
  
    ulong IConvertible.ToUInt64(IFormatProvider provider)
   
  Parameters
  
    
      
        | Type | 
        Name | 
        Description | 
      
    
    
      
        | System.IFormatProvider | 
        provider | 
         | 
      
    
  
  Returns
  
    
      
        | Type | 
        Description | 
      
    
    
      
        | System.UInt64 | 
         | 
      
    
  
  Implements
  
      System.IEquatable<T>
  
  
      System.IEquatable<T>
  
  
      System.IEquatable<T>
  
  
      System.IComparable<T>
  
  
      System.IComparable<T>
  
  
      System.IComparable<T>
  
  
      System.IConvertible