Метод | Описание | |
---|---|---|
FromNSDate ( NSDate date ) : DateTimeOffset | ||
FromUnixTimeMilliseconds ( long milliseconds ) : DateTimeOffset |
Converts a Unix time expressed as the number of milliseconds that have elapsed since 1970-01-01T00:00:00Z to a DateTimeOffset value.
|
|
FromUnixTimeSeconds ( long seconds ) : DateTimeOffset |
Converts a Unix time expressed as the number of seconds that have elapsed since 1970-01-01T00:00:00Z to a DateTimeOffset value.
|
|
ToNSDate ( this value ) : NSDate | ||
ToUnixTimeMilliseconds ( this date ) : long |
Returns the number of milliseconds that have elapsed since 1970-01-01T00:00:00.000Z. Unix time represents the number of seconds that have elapsed since 1970-01-01T00:00:00Z (January 1, 1970, at 12:00 AM UTC). It does not take leap seconds into account. This method returns the number of milliseconds in Unix time. This method first converts the current instance to UTC before returning the number of milliseconds in its Unix time. For date and time values before 1970-01-01T00:00:00Z, this method returns a negative value. |
|
ToUnixTimeSeconds ( this date ) : long |
Returns the number of seconds that have elapsed since 1970-01-01T00:00:00Z. Unix time represents the number of seconds that have elapsed since 1970-01-01T00:00:00Z (January 1, 1970, at 12:00 AM UTC). It does not take leap seconds into account. This method first converts the current instance to UTC before returning its Unix time. For date and time values before 1970-01-01T00:00:00Z, this method returns a negative value. |
public static FromNSDate ( NSDate date ) : DateTimeOffset | ||
date | NSDate | |
Результат | DateTimeOffset |
public static FromUnixTimeMilliseconds ( long milliseconds ) : DateTimeOffset | ||
milliseconds | long | A Unix time, expressed as the number of milliseconds that have elapsed since 1970-01-01T00:00:00Z (January 1, 1970, at 12:00 AM UTC). /// For Unix times before this date, its value is negative. |
Результат | DateTimeOffset |
public static FromUnixTimeSeconds ( long seconds ) : DateTimeOffset | ||
seconds | long | A Unix time, expressed as the number of seconds that have elapsed since 1970-01-01T00:00:00Z (January 1, 1970, at 12:00 AM UTC). /// For Unix times before this date, its value is negative. |
Результат | DateTimeOffset |
public static ToNSDate ( this value ) : NSDate | ||
value | this | |
Результат | NSDate |
public static ToUnixTimeMilliseconds ( this date ) : long | ||
date | this | The DateTimeOffset value. |
Результат | long |
public static ToUnixTimeSeconds ( this date ) : long | ||
date | this | The DateTimeOffset value. |
Результат | long |