Search Results for

    Show / Hide Table of Contents

    Class TimeSpanExtended

    Extension methods for TimeSpan instances.

    Inheritance
    object
    TimeSpanExtended
    Namespace: Evergine.Common.Helpers
    Assembly: Evergine.Common.dll
    Syntax
    public static class TimeSpanExtended

    Methods

    Divide(TimeSpan, int)

    Divides the specified time by the given divider.

    Declaration
    public static TimeSpan Divide(this TimeSpan time, int divider)
    Parameters
    Type Name Description
    TimeSpan time

    The time to be divided.

    int divider

    The value by which to divide the time.

    Returns
    Type Description
    TimeSpan

    The result of the division.

    Divide(TimeSpan, TimeSpan)

    Divides the specified time.

    Declaration
    public static TimeSpan Divide(this TimeSpan time1, TimeSpan time2)
    Parameters
    Type Name Description
    TimeSpan time1

    The first time value.

    TimeSpan time2

    The second time value.

    Returns
    Type Description
    TimeSpan

    The result.

    Multiply(TimeSpan, int)

    Multiplies the specified time.

    Declaration
    public static TimeSpan Multiply(this TimeSpan time, int multiplier)
    Parameters
    Type Name Description
    TimeSpan time

    The time.

    int multiplier

    The multiplier.

    Returns
    Type Description
    TimeSpan

    The result.

    Multiply(TimeSpan, TimeSpan)

    Multiplies the specified time.

    Declaration
    public static TimeSpan Multiply(this TimeSpan time1, TimeSpan time2)
    Parameters
    Type Name Description
    TimeSpan time1

    The first time value.

    TimeSpan time2

    The second time value.

    Returns
    Type Description
    TimeSpan

    The result.

    In this article
    Back to top
    Generated by DocFX