Search Results for

    Show / Hide Table of Contents

    Class Duration

    Duration with begin / end time stamps.

    Inheritance
    System.Object
    Duration
    Implements
    IDuration
    Inherited Members
    System.Object.ToString()
    System.Object.Equals(System.Object)
    System.Object.Equals(System.Object, System.Object)
    System.Object.ReferenceEquals(System.Object, System.Object)
    System.Object.GetHashCode()
    System.Object.GetType()
    System.Object.MemberwiseClone()
    Namespace: TimeCockpit.Data.DataModel
    Assembly: TimeCockpit.Data.dll
    Syntax
    public class Duration : IDuration

    Constructors

    Duration(DateTime, DateTime)

    Initializes a new instance of the Duration class. constructs from begintime and end time.

    Declaration
    public Duration(DateTime beginTime, DateTime endTime)
    Parameters
    Type Name Description
    System.DateTime beginTime

    begin timestamp of the duration.

    System.DateTime endTime

    end timestamp of the duration.

    Properties

    BeginTime

    Gets or sets the BeginTime of the duration

    Declaration
    public DateTime BeginTime { get; set; }
    Property Value
    Type Description
    System.DateTime
    Implements
    IDuration.BeginTime

    DurationInHours

    Gets the duration of the duration in hours.

    Declaration
    public decimal? DurationInHours { get; }
    Property Value
    Type Description
    System.Nullable<System.Decimal>
    Implements
    IDuration.DurationInHours

    EndTime

    Gets or sets the EndTime of the duration

    Declaration
    public DateTime EndTime { get; set; }
    Property Value
    Type Description
    System.DateTime
    Implements
    IDuration.EndTime
    In This Article
    Back to top Copyright © 2020 software architects gmbh