Show / Hide Table of Contents

    Class TimerUtil

    Inheritance
    Object
    TimerUtil
    Inherited Members
    Object.Equals(Object)
    Object.Equals(Object, Object)
    Object.GetHashCode()
    Object.GetType()
    Object.MemberwiseClone()
    Object.ToString()
    Object.ReferenceEquals(Object, Object)
    Namespace: IdleKit.Gameplay
    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
    Type Description
    Int64

    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
    Type Description
    Single

    SecondsToMilliseconds(Single)

    Declaration
    public static long SecondsToMilliseconds(float seconds)
    Parameters
    Type Name Description
    Single seconds
    Returns
    Type Description
    Int64

    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
    Type Description
    Int64
    Back to top Copyright © 2020 East Side Games Inc.