Class Duration
- Namespace
- TimeCockpit.Data.DataModel
- Assembly
- TimeCockpit.Data.dll
Duration with begin / end time stamps.
public class Duration : IDuration
- Inheritance
-
ObjectDuration
- 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
beginTimeDateTimebegin timestamp of the duration.
endTimeDateTimeend 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