Show / Hide Table of Contents

    PbGlobal.Time(int? hour, int? minute, int? second, int? microsecond = 0) Method

    .NET Standard 2.x

    Combines ints representing hours, minutes, seconds, and microseconds into a TimeSpan value.

    Namespace: PowerScript.Bridge

    Assembly: PowerScript.Bridge.dll

    Syntax

    public static TimeSpan? Time(int? hour, int? minute, int? second, int? microsecond = 0);
    

    Parameters

    hour System.Int32

    The int for the hour (00 to 23) of the TimeSpan.

    minute System.Int32

    The int for the minutes (00 to 59) of the TimeSpan.

    second System.Int32

    The int for the seconds (0 to 59) of the TimeSpan.

    microsecond System.Int32

    The int for the microseconds (0 to 32767) of the time (note that the range of values supported for this argument is less than the total range of values possible for a microsecond)

    Returns

    System.TimeSpan

    Returns the time as a TimeSpan datatype and 00:00:00 if the value in any argument is not valid (out of the specified range of values). If any argument is null, Time returns null.

    Examples

    Coming soon.

    Applies to

    .NET Standard

    2.x

    Back to top Generated by Appeon