Property | Type | Description | |
---|---|---|---|
UnixEpoch | System.DateTime |
Method | Description | |
---|---|---|
DateTimeFromUnixTimestampMilliseconds ( long millis ) : System.DateTime |
Returns a UTC date, based on the passed in milliseconds as unix time
|
|
GetAddDifferenceMilliseconds ( System.TimeSpan difference ) : long |
Gets the current time as MS in unix time, plus the passed in timespan.
|
|
GetCurrentUnixTimestampMilliseconds ( ) : long |
Gets the current time as MS in unix time
|
|
GetSubtractDifferenceMilliseconds ( System.TimeSpan difference ) : long |
Gets the current time as MS in unix time, minus the passed in timespan.
|
Method | Description | |
---|---|---|
BaseUnixTime ( ILogFactory log, |
Initializes a new instance of the RedisServerUnixTime class.
|
|
GetTime ( ) : System.DateTime |
Gets the time.
|
|
GetUnixTime ( ) : long |
Gets the time as a long unix format; precision must be milliseconds
|
protected BaseUnixTime ( ILogFactory log, |
||
log | ILogFactory | The log. |
configuration | The configuration. | |
return | System |
public DateTimeFromUnixTimestampMilliseconds ( long millis ) : System.DateTime | ||
millis | long | The milliseconds. |
return | System.DateTime |
public GetAddDifferenceMilliseconds ( System.TimeSpan difference ) : long | ||
difference | System.TimeSpan | The difference. |
return | long |
public GetCurrentUnixTimestampMilliseconds ( ) : long | ||
return | long |
public GetSubtractDifferenceMilliseconds ( System.TimeSpan difference ) : long | ||
difference | System.TimeSpan | The difference. |
return | long |