TGregorianDuration
Describes a duration between two instants on the Gregorian calendar.
Inheritance
Level | Ancestor | Description |
---|---|---|
1 | TObject | Ultimate ancestor in a class hierarchy |
2 | TBaseObject | A base class for objects that can be used instead of TObject . |
3 | TReferenceCountedObject | Object that keeps track of the number of times it is referenced from other objects |
4 | TValue | Base class for an immutable object that stores a value of a certain TType . |
5 | TGregorianDuration |
Source
DateTime.Calendar.Gregorian.Duration.pas (34)
Description
A duration consists of a TSign
, days, hours, minutes and seconds.
Fields
Scope | Visibility | Type | Name | Description |
---|---|---|---|---|
Instance | private | TSign | FSign | |
Instance | private | TInteger | FDays | |
Instance | private | THourOfDay | FHours | |
Instance | private | TMinuteOfHour | FMinutes | |
Instance | private | TSecondOfMinute | FSeconds | |
Instance | private | TMillisecondOfSecond | FMilliseconds | |
Type | public | TGregorianDuration | Day | |
Type | public | TGregorianDuration | Hour | |
Type | public | TGregorianDuration | Minute | |
Type | public | TGregorianDuration | Second | |
Type | public | TGregorianDuration | Zero |
Methods
Scope | Visibility | Result | Name | Description |
---|---|---|---|---|
Instance | protected | TBoolean | EqualsDuration(Duration: TGregorianDuration) | |
Instance | public | Create(Sign: TSign; Days: TInteger; Hours: THourOfDay; Minutes: TMinuteOfHour; Seconds: TSecondOfMinute; Milliseconds: TMillisecondOfSecond) | ||
Instance | public | TBoolean | Equals(Object_: TBaseObject) | |
Instance | public | TText | ToText() | |
Global | public | Create() | ||
Global | public | Destroy() |