Class TimerUtil
Assembly: cs.temp.dll.dll
Syntax
public static class TimerUtil
Properties
EPOCH
Declaration
public static DateTime EPOCH { get; }
Property Value
Type |
Description |
DateTime |
|
MaxTimestamp
Declaration
public static long MaxTimestamp { get; }
Property Value
Methods
MillisecondsToSeconds(Int64)
[IdleKit] As of C# 4.5 if the input parameter contains more than 8 digits, the results will be rounded,
which may not be an expected behaviour when precision is important. (e.g: 49999.999f automatically
converted to 50000f)
Declaration
public static float MillisecondsToSeconds(long milliseconds)
Parameters
Type |
Name |
Description |
Int64 |
milliseconds |
|
Returns
SecondsToMilliseconds(Single)
Declaration
public static long SecondsToMilliseconds(float seconds)
Parameters
Type |
Name |
Description |
Single |
seconds |
|
Returns
ToDateTime(Int64)
Declaration
public static DateTime ToDateTime(this long timestamp)
Parameters
Type |
Name |
Description |
Int64 |
timestamp |
|
Returns
Type |
Description |
DateTime |
|
ToTimestamp(DateTime)
Declaration
public static long ToTimestamp(this DateTime time)
Parameters
Type |
Name |
Description |
DateTime |
time |
|
Returns