Show / Hide Table of Contents

    Class DoubleConverterExtensions

    This is an extension implementation of the DoubleConverter class.

    Inheritance
    System.Object
    DoubleConverterExtensions
    Namespace: Cuemon
    Assembly: Cuemon.Core.dll
    Syntax
    public static class DoubleConverterExtensions

    Methods

    | Improve this Doc

    ToEpochTime(DateTime)

    Converts the specified value to an equivalent Epoc time representation.

    Declaration
    public static double ToEpochTime(this DateTime value)
    Parameters
    Type Name Description
    System.DateTime value

    The System.DateTime value to be converted.

    Returns
    Type Description
    System.Double

    A System.Double value that is equivalent to value.

    Remarks

    This implementation converts the value to an UTC representation ONLY if the System.DateTime.Kind equals System.DateTimeKind.Local.

    | Improve this Doc

    ToEpochTime(DateTime, Func<DateTime, DateTime>)

    Converts the specified value to an equivalent Epoc time representation.

    Declaration
    public static double ToEpochTime(this DateTime value, Func<DateTime, DateTime> utcConverter)
    Parameters
    Type Name Description
    System.DateTime value

    The System.DateTime value to be converted.

    System.Func<System.DateTime, System.DateTime> utcConverter

    The function delegate that will convert the given value to its UTC equivalent.

    Returns
    Type Description
    System.Double

    A System.Double value that is equivalent to value.

    • Improve this Doc
    • View Source
    Back to top Copyright 2008-2018 Weubphoria. All rights reserved.
    Generated by DocFX