Unosquare
    Show / Hide Table of Contents

    Struct DateTimeSpan

    Represents a struct of DateTimeSpan to compare dates and get in separate fields the amount of time between those dates.

    Based on https://stackoverflow.com/a/9216404/1096693.

    Inherited Members
    ValueType.Equals(Object)
    ValueType.GetHashCode()
    ValueType.ToString()
    Object.Equals(Object, Object)
    Object.ReferenceEquals(Object, Object)
    Object.GetType()
    Namespace: Swan
    Syntax
    public struct DateTimeSpan

    Constructors

    DateTimeSpan(Int32, Int32, Int32, Int32, Int32, Int32, Int32)

    Initializes a new instance of the DateTimeSpan struct.

    Declaration
    public DateTimeSpan(int years, int months, int days, int hours, int minutes, int seconds, int milliseconds)
    Parameters
    Type Name Description
    Int32 years

    The years.

    Int32 months

    The months.

    Int32 days

    The days.

    Int32 hours

    The hours.

    Int32 minutes

    The minutes.

    Int32 seconds

    The seconds.

    Int32 milliseconds

    The milliseconds.

    Properties

    Days

    Gets the days.

    Declaration
    public int Days { get; }
    Property Value
    Type Description
    Int32

    The days.

    Hours

    Gets the hours.

    Declaration
    public int Hours { get; }
    Property Value
    Type Description
    Int32

    The hours.

    Milliseconds

    Gets the milliseconds.

    Declaration
    public int Milliseconds { get; }
    Property Value
    Type Description
    Int32

    The milliseconds.

    Minutes

    Gets the minutes.

    Declaration
    public int Minutes { get; }
    Property Value
    Type Description
    Int32

    The minutes.

    Months

    Gets the months.

    Declaration
    public int Months { get; }
    Property Value
    Type Description
    Int32

    The months.

    Seconds

    Gets the seconds.

    Declaration
    public int Seconds { get; }
    Property Value
    Type Description
    Int32

    The seconds.

    Years

    Gets the years.

    Declaration
    public int Years { get; }
    Property Value
    Type Description
    Int32

    The years.

    Comments

    Back to top Copyright © 2017-2019 Unosquare