Table of Contents

Class Duration

Namespace
TimeCockpit.Data.DataModel
Assembly
TimeCockpit.Data.dll

Duration with begin / end time stamps.

public class Duration : IDuration
Inheritance
Object
Duration
Implements
Inherited Members
Object.ToString()
Object.Equals(Object)
Object.Equals(Object, Object)
Object.ReferenceEquals(Object, Object)
Object.GetHashCode()
Object.GetType()
Object.MemberwiseClone()

Constructors

Duration(DateTime, DateTime)

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

public Duration(DateTime beginTime, DateTime endTime)

Parameters

beginTime DateTime

begin timestamp of the duration.

endTime DateTime

end timestamp of the duration.

Properties

BeginTime

Gets or sets the BeginTime of the duration

public DateTime BeginTime { get; set; }

Property Value

DateTime

DurationInHours

Gets the duration of the duration in hours.

public decimal? DurationInHours { get; }

Property Value

Nullable<Decimal>

EndTime

Gets or sets the EndTime of the duration

public DateTime EndTime { get; set; }

Property Value

DateTime