Class UnixTime
Utility class to work with unix time stamps
Inherited Members
Namespace: TimeSeriesAnalysis.Utility
Assembly: TimeSeriesAnalysis.dll
Syntax
public class UnixTime
Methods
| Edit this page View SourceConvertFromUnixTimestamp(double)
Converts a unix timestamp into a DateTime
Declaration
public static DateTime ConvertFromUnixTimestamp(double timestamp)
Parameters
Type | Name | Description |
---|---|---|
double | timestamp | the double time stamp to be converted |
Returns
Type | Description |
---|---|
DateTime | a converted DateTime object |
ConvertToUnixTimestamp(DateTime)
Converts a DateTime into a unix timestamp
Declaration
public static double ConvertToUnixTimestamp(DateTime date)
Parameters
Type | Name | Description |
---|---|---|
DateTime | date |
Returns
Type | Description |
---|---|
double | A unix time stamp double |
GetNowUnixTime()
Returns the Unix time of the current UTC-time.
Declaration
public static double GetNowUnixTime()
Returns
Type | Description |
---|---|
double |