Class UnixTime
Contains common date and time related constants.
Inheritance
Inherited Members
Namespace: TimeyWimey
Assembly: cs.temp.dll.dll
Syntax
public static class UnixTime
Fields
Name | Description |
---|---|
UnixEpoch | Returns a System.DateTime instance representing 1st Jan 1970, the Unix epoch. |
UnixEpochDateTimeOffset | Returns a System.DateTimeOffset instance representing 1st Jan 1970, the Unix epoch. |
Methods
Name | Description |
---|---|
ToDateTime(Double) | Returns a new System.DateTime instance representing the date & time the specified timestamp represents. |
ToDateTime(Int64) | Returns a new System.DateTime instance representing the date & time the specified timestamp represents. |
ToDateTimeOffset(Double) | Returns a new System.DateTimeOffset instance representing the date & time the specified timestamp represents. |
ToDateTimeOffset(Int64) | Returns a new System.DateTimeOffset instance representing the date & time the specified timestamp represents. |
ToUnixTimestamp(DateTime) | Converts the specified date & time into a double value that represents an equivalent Unix timestamp. |
ToUnixTimestamp(DateTimeOffset) | Converts the specified System.DateTimeOffset into a double value that represents an equivalent Unix timestamp. |