Class Duration
Duration with begin / end time stamps.
Inheritance
System.Object
Duration
Implements
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
DurationInHours
Gets the duration of the duration in hours.
Declaration
public decimal? DurationInHours { get; }
Property Value
Type | Description |
---|---|
System.Nullable<System.Decimal> |
Implements
EndTime
Gets or sets the EndTime of the duration
Declaration
public DateTime EndTime { get; set; }
Property Value
Type | Description |
---|---|
System.DateTime |