Свойство | Type | Description | |
---|---|---|---|
UnixEpoch | System.DateTime |
Méthode | Description | |
---|---|---|
ToBeatTime ( this dt ) : double |
Converts a timestamp to Swatch Internet Time (beat time)
|
|
ToDateTime ( this unixTimestamp ) : System.DateTime |
Converts a UNIX timestamp to a DateTime object
|
|
ToTimeZone ( this dt, string timeZoneId ) : System.DateTime |
Converts a UTC DateTime to a DateTime in the specified timeZoneId Use TimeZoneInfo.GetSystemTimeZones() to view available TimeZoneIds Or look in HKLM\Software\Microsoft\Windows NT\CurrentVersion\Time Zones\ |
|
ToTimeZone ( this dt, string fromTimeZoneId, string toTimeZoneId ) : System.DateTime |
Converts a DateTime from one time zone to another Use TimeZoneInfo.GetSystemTimeZones() to view available TimeZoneIds Or look in HKLM\Software\Microsoft\Windows NT\CurrentVersion\Time Zones\ |
|
ToUniversalTime ( this dt, string timeZoneId ) : System.DateTime |
Converts an offset DateTime in the specified timeZoneId to a UTC DateTime Use TimeZoneInfo.GetSystemTimeZones() to view available TimeZoneIds Or look in HKLM\Software\Microsoft\Windows NT\CurrentVersion\Time Zones\ |
|
ToUnixTime ( this dt ) : long |
Converts the given DateTime to a UNIX timestamp
|
public static ToBeatTime ( this dt ) : double | ||
dt | this | |
Résultat | double |
public static ToDateTime ( this unixTimestamp ) : System.DateTime | ||
unixTimestamp | this | |
Résultat | System.DateTime |
public static ToTimeZone ( this dt, string timeZoneId ) : System.DateTime | ||
dt | this | |
timeZoneId | string | Time zone to convert to |
Résultat | System.DateTime |
public static ToTimeZone ( this dt, string fromTimeZoneId, string toTimeZoneId ) : System.DateTime | ||
dt | this | |
fromTimeZoneId | string | Time zone to convert from |
toTimeZoneId | string | |
Résultat | System.DateTime |
public static ToUniversalTime ( this dt, string timeZoneId ) : System.DateTime | ||
dt | this | |
timeZoneId | string | Time zone to convert from |
Résultat | System.DateTime |
public static ToUnixTime ( this dt ) : long | ||
dt | this | |
Résultat | long |