Struct WolfTimestamp
Represents a WOLF Timestamp.
Implements
Namespace: TehGM.Wolfringo
Assembly: Wolfringo.Core.dll
Syntax
[TypeConverter(typeof(WolfTimestampTypeConverter))]
public struct WolfTimestamp : IEquatable<WolfTimestamp>, IEquatable<DateTime>, IEquatable<long>, IComparable<WolfTimestamp>, IComparable<DateTime>, IComparable<long>, IConvertible
Remarks
This type is designed to provide easy and out-of-the-box conversions between WOLF Timestamp long format and DateTime.
Constructors
| Improve this Doc View SourceWolfTimestamp(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. |
Remarks
This type is designed to provide easy and out-of-the-box conversions between WOLF Timestamp long format and DateTime.
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. |
Remarks
This type is designed to provide easy and out-of-the-box conversions between WOLF Timestamp long format and DateTime.
Fields
| Improve this Doc View SourceEpoch
Unix Epoch.
Declaration
public static readonly DateTime Epoch
Field Value
| Type | Description |
|---|---|
| System.DateTime |
Remarks
This type is designed to provide easy and out-of-the-box conversions between WOLF Timestamp long format and DateTime.
Methods
| Improve this Doc View SourceCompareTo(DateTime)
Represents a WOLF Timestamp.
Declaration
public int CompareTo(DateTime other)
Parameters
| Type | Name | Description |
|---|---|---|
| System.DateTime | other |
Returns
| Type | Description |
|---|---|
| System.Int32 |
Remarks
This type is designed to provide easy and out-of-the-box conversions between WOLF Timestamp long format and DateTime.
CompareTo(Int64)
Represents a WOLF Timestamp.
Declaration
public int CompareTo(long other)
Parameters
| Type | Name | Description |
|---|---|---|
| System.Int64 | other |
Returns
| Type | Description |
|---|---|
| System.Int32 |
Remarks
This type is designed to provide easy and out-of-the-box conversions between WOLF Timestamp long format and DateTime.
CompareTo(WolfTimestamp)
Represents a WOLF Timestamp.
Declaration
public int CompareTo(WolfTimestamp other)
Parameters
| Type | Name | Description |
|---|---|---|
| WolfTimestamp | other |
Returns
| Type | Description |
|---|---|
| System.Int32 |
Remarks
This type is designed to provide easy and out-of-the-box conversions between WOLF Timestamp long format and DateTime.
Equals(DateTime)
Represents a WOLF Timestamp.
Declaration
public bool Equals(DateTime other)
Parameters
| Type | Name | Description |
|---|---|---|
| System.DateTime | other |
Returns
| Type | Description |
|---|---|
| System.Boolean |
Remarks
This type is designed to provide easy and out-of-the-box conversions between WOLF Timestamp long format and DateTime.
Equals(Int64)
Represents a WOLF Timestamp.
Declaration
public bool Equals(long other)
Parameters
| Type | Name | Description |
|---|---|---|
| System.Int64 | other |
Returns
| Type | Description |
|---|---|
| System.Boolean |
Remarks
This type is designed to provide easy and out-of-the-box conversions between WOLF Timestamp long format and DateTime.
Equals(Object)
Represents a WOLF Timestamp.
Declaration
public override bool Equals(object obj)
Parameters
| Type | Name | Description |
|---|---|---|
| System.Object | obj |
Returns
| Type | Description |
|---|---|
| System.Boolean |
Overrides
Remarks
This type is designed to provide easy and out-of-the-box conversions between WOLF Timestamp long format and DateTime.
Equals(WolfTimestamp)
Represents a WOLF Timestamp.
Declaration
public bool Equals(WolfTimestamp other)
Parameters
| Type | Name | Description |
|---|---|---|
| WolfTimestamp | other |
Returns
| Type | Description |
|---|---|
| System.Boolean |
Remarks
This type is designed to provide easy and out-of-the-box conversions between WOLF Timestamp long format and DateTime.
GetHashCode()
Represents a WOLF Timestamp.
Declaration
public override int GetHashCode()
Returns
| Type | Description |
|---|---|
| System.Int32 |
Overrides
Remarks
This type is designed to provide easy and out-of-the-box conversions between WOLF Timestamp long format and DateTime.
ToDateTime()
Gets DateTime that equals this WOLF timestamp.
Declaration
public DateTime ToDateTime()
Returns
| Type | Description |
|---|---|
| System.DateTime | DateTime representation of the timestamp. |
Remarks
This type is designed to provide easy and out-of-the-box conversions between WOLF Timestamp long format and DateTime.
ToString()
Represents a WOLF Timestamp.
Declaration
public override string ToString()
Returns
| Type | Description |
|---|---|
| System.String |
Overrides
Remarks
This type is designed to provide easy and out-of-the-box conversions between WOLF Timestamp long format and DateTime.
Operators
| Improve this Doc View SourceEquality(WolfTimestamp, WolfTimestamp)
Represents a WOLF Timestamp.
Declaration
public static bool operator ==(WolfTimestamp left, WolfTimestamp right)
Parameters
| Type | Name | Description |
|---|---|---|
| WolfTimestamp | left | |
| WolfTimestamp | right |
Returns
| Type | Description |
|---|---|
| System.Boolean |
Remarks
This type is designed to provide easy and out-of-the-box conversions between WOLF Timestamp long format and DateTime.
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
| Type | Description |
|---|---|
| WolfTimestamp |
Remarks
This type is designed to provide easy and out-of-the-box conversions between WOLF Timestamp long format and DateTime.
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
| Type | Description |
|---|---|
| WolfTimestamp |
Remarks
This type is designed to provide easy and out-of-the-box conversions between WOLF Timestamp long format and DateTime.
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 |
Remarks
This type is designed to provide easy and out-of-the-box conversions between WOLF Timestamp long format and DateTime.
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 |
Remarks
This type is designed to provide easy and out-of-the-box conversions between WOLF Timestamp long format and DateTime.
Inequality(WolfTimestamp, WolfTimestamp)
Represents a WOLF Timestamp.
Declaration
public static bool operator !=(WolfTimestamp left, WolfTimestamp right)
Parameters
| Type | Name | Description |
|---|---|---|
| WolfTimestamp | left | |
| WolfTimestamp | right |
Returns
| Type | Description |
|---|---|
| System.Boolean |
Remarks
This type is designed to provide easy and out-of-the-box conversions between WOLF Timestamp long format and DateTime.
Explicit Interface Implementations
| Improve this Doc View SourceIConvertible.GetTypeCode()
Represents a WOLF Timestamp.
Declaration
TypeCode IConvertible.GetTypeCode()
Returns
| Type | Description |
|---|---|
| System.TypeCode |
Remarks
This type is designed to provide easy and out-of-the-box conversions between WOLF Timestamp long format and DateTime.
IConvertible.ToBoolean(IFormatProvider)
Represents a WOLF Timestamp.
Declaration
bool IConvertible.ToBoolean(IFormatProvider provider)
Parameters
| Type | Name | Description |
|---|---|---|
| System.IFormatProvider | provider |
Returns
| Type | Description |
|---|---|
| System.Boolean |
Remarks
This type is designed to provide easy and out-of-the-box conversions between WOLF Timestamp long format and DateTime.
IConvertible.ToByte(IFormatProvider)
Represents a WOLF Timestamp.
Declaration
byte IConvertible.ToByte(IFormatProvider provider)
Parameters
| Type | Name | Description |
|---|---|---|
| System.IFormatProvider | provider |
Returns
| Type | Description |
|---|---|
| System.Byte |
Remarks
This type is designed to provide easy and out-of-the-box conversions between WOLF Timestamp long format and DateTime.
IConvertible.ToChar(IFormatProvider)
Represents a WOLF Timestamp.
Declaration
char IConvertible.ToChar(IFormatProvider provider)
Parameters
| Type | Name | Description |
|---|---|---|
| System.IFormatProvider | provider |
Returns
| Type | Description |
|---|---|
| System.Char |
Remarks
This type is designed to provide easy and out-of-the-box conversions between WOLF Timestamp long format and DateTime.
IConvertible.ToDateTime(IFormatProvider)
Represents a WOLF Timestamp.
Declaration
DateTime IConvertible.ToDateTime(IFormatProvider provider)
Parameters
| Type | Name | Description |
|---|---|---|
| System.IFormatProvider | provider |
Returns
| Type | Description |
|---|---|
| System.DateTime |
Remarks
This type is designed to provide easy and out-of-the-box conversions between WOLF Timestamp long format and DateTime.
IConvertible.ToDecimal(IFormatProvider)
Represents a WOLF Timestamp.
Declaration
decimal IConvertible.ToDecimal(IFormatProvider provider)
Parameters
| Type | Name | Description |
|---|---|---|
| System.IFormatProvider | provider |
Returns
| Type | Description |
|---|---|
| System.Decimal |
Remarks
This type is designed to provide easy and out-of-the-box conversions between WOLF Timestamp long format and DateTime.
IConvertible.ToDouble(IFormatProvider)
Represents a WOLF Timestamp.
Declaration
double IConvertible.ToDouble(IFormatProvider provider)
Parameters
| Type | Name | Description |
|---|---|---|
| System.IFormatProvider | provider |
Returns
| Type | Description |
|---|---|
| System.Double |
Remarks
This type is designed to provide easy and out-of-the-box conversions between WOLF Timestamp long format and DateTime.
IConvertible.ToInt16(IFormatProvider)
Represents a WOLF Timestamp.
Declaration
short IConvertible.ToInt16(IFormatProvider provider)
Parameters
| Type | Name | Description |
|---|---|---|
| System.IFormatProvider | provider |
Returns
| Type | Description |
|---|---|
| System.Int16 |
Remarks
This type is designed to provide easy and out-of-the-box conversions between WOLF Timestamp long format and DateTime.
IConvertible.ToInt32(IFormatProvider)
Represents a WOLF Timestamp.
Declaration
int IConvertible.ToInt32(IFormatProvider provider)
Parameters
| Type | Name | Description |
|---|---|---|
| System.IFormatProvider | provider |
Returns
| Type | Description |
|---|---|
| System.Int32 |
Remarks
This type is designed to provide easy and out-of-the-box conversions between WOLF Timestamp long format and DateTime.
IConvertible.ToInt64(IFormatProvider)
Represents a WOLF Timestamp.
Declaration
long IConvertible.ToInt64(IFormatProvider provider)
Parameters
| Type | Name | Description |
|---|---|---|
| System.IFormatProvider | provider |
Returns
| Type | Description |
|---|---|
| System.Int64 |
Remarks
This type is designed to provide easy and out-of-the-box conversions between WOLF Timestamp long format and DateTime.
IConvertible.ToSByte(IFormatProvider)
Represents a WOLF Timestamp.
Declaration
sbyte IConvertible.ToSByte(IFormatProvider provider)
Parameters
| Type | Name | Description |
|---|---|---|
| System.IFormatProvider | provider |
Returns
| Type | Description |
|---|---|
| System.SByte |
Remarks
This type is designed to provide easy and out-of-the-box conversions between WOLF Timestamp long format and DateTime.
IConvertible.ToSingle(IFormatProvider)
Represents a WOLF Timestamp.
Declaration
float IConvertible.ToSingle(IFormatProvider provider)
Parameters
| Type | Name | Description |
|---|---|---|
| System.IFormatProvider | provider |
Returns
| Type | Description |
|---|---|
| System.Single |
Remarks
This type is designed to provide easy and out-of-the-box conversions between WOLF Timestamp long format and DateTime.
IConvertible.ToString(IFormatProvider)
Represents a WOLF Timestamp.
Declaration
string IConvertible.ToString(IFormatProvider provider)
Parameters
| Type | Name | Description |
|---|---|---|
| System.IFormatProvider | provider |
Returns
| Type | Description |
|---|---|
| System.String |
Remarks
This type is designed to provide easy and out-of-the-box conversions between WOLF Timestamp long format and DateTime.
IConvertible.ToType(Type, IFormatProvider)
Represents a WOLF Timestamp.
Declaration
object IConvertible.ToType(Type conversionType, IFormatProvider provider)
Parameters
| Type | Name | Description |
|---|---|---|
| System.Type | conversionType | |
| System.IFormatProvider | provider |
Returns
| Type | Description |
|---|---|
| System.Object |
Remarks
This type is designed to provide easy and out-of-the-box conversions between WOLF Timestamp long format and DateTime.
IConvertible.ToUInt16(IFormatProvider)
Represents a WOLF Timestamp.
Declaration
ushort IConvertible.ToUInt16(IFormatProvider provider)
Parameters
| Type | Name | Description |
|---|---|---|
| System.IFormatProvider | provider |
Returns
| Type | Description |
|---|---|
| System.UInt16 |
Remarks
This type is designed to provide easy and out-of-the-box conversions between WOLF Timestamp long format and DateTime.
IConvertible.ToUInt32(IFormatProvider)
Represents a WOLF Timestamp.
Declaration
uint IConvertible.ToUInt32(IFormatProvider provider)
Parameters
| Type | Name | Description |
|---|---|---|
| System.IFormatProvider | provider |
Returns
| Type | Description |
|---|---|
| System.UInt32 |
Remarks
This type is designed to provide easy and out-of-the-box conversions between WOLF Timestamp long format and DateTime.
IConvertible.ToUInt64(IFormatProvider)
Represents a WOLF Timestamp.
Declaration
ulong IConvertible.ToUInt64(IFormatProvider provider)
Parameters
| Type | Name | Description |
|---|---|---|
| System.IFormatProvider | provider |
Returns
| Type | Description |
|---|---|
| System.UInt64 |
Remarks
This type is designed to provide easy and out-of-the-box conversions between WOLF Timestamp long format and DateTime.