Search Results for

    Show / Hide Table of Contents

    Class UnixTime

    Utility class to work with unix time stamps

    Inheritance
    object
    UnixTime
    Inherited Members
    object.Equals(object)
    object.Equals(object, object)
    object.GetHashCode()
    object.GetType()
    object.MemberwiseClone()
    object.ReferenceEquals(object, object)
    object.ToString()
    Namespace: TimeSeriesAnalysis.Utility
    Assembly: TimeSeriesAnalysis.dll
    Syntax
    public class UnixTime

    Methods

    | Edit this page View Source

    ConvertFromUnixTimestamp(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

    | Edit this page View Source

    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

    | Edit this page View Source

    GetNowUnixTime()

    Returns the Unix time of the current UTC-time.

    Declaration
    public static double GetNowUnixTime()
    Returns
    Type Description
    double
    • Edit this page
    • View Source
    In this article
    Back to top Generated by DocFX