Show / Hide Table of Contents

    TimeSpanExtensions.RelativeTime(this TimeSpan? time, int? n) Method

    .NET Standard 2.x

    Obtains a TimeSpan that occurs a specified number of seconds after or before another TimeSpan? within a 24-hour period.

    Namespace: PowerScript.Bridge

    Assembly: PowerScript.Bridge.dll

    Syntax

     public static TimeSpan? RelativeTime(this TimeSpan? time, int? n);
    

    Parameters

    time System.TimeSpan

    A value of type TimeSpan.

    n System.Int32

    An int number of seconds

    Returns

    System.TimeSpan

    Returns the TimeSpan that occurs n seconds after time if n is greater than 0. Returns the TimeSpan that occurs n seconds before time if n is less than 0. The maximum return value is 23:59:59. If any argument's value is null, RelativeTime returns null.

    Examples

    Coming soon.

    Applies to

    .NET Standard

    2.x

    Back to top Generated by Appeon