Table of Contents

Class UnixTime

Namespace
TimeSeriesAnalysis.Utility
Assembly
TimeSeriesAnalysis.dll

Utility class to work with unix time stamps

public class UnixTime
Inheritance
UnixTime
Inherited Members

Methods

ConvertFromUnixTimestamp(double)

Converts a unix timestamp into a DateTime

public static DateTime ConvertFromUnixTimestamp(double timestamp)

Parameters

timestamp double

the double time stamp to be converted

Returns

DateTime

a converted DateTime object

ConvertToUnixTimestamp(DateTime)

Converts a DateTime into a unix timestamp

public static double ConvertToUnixTimestamp(DateTime date)

Parameters

date DateTime

Returns

double

A unix time stamp double

GetNowUnixTime()

Returns the Unix time of the current UTC-time.

public static double GetNowUnixTime()

Returns

double