TBATime¶
A time attribute
Unit: BoldAttributes
Declaration¶
Hierarchy¶
- TObject
TBoldMemoryManagedObjectTBoldFlaggedObject- TBoldSubscribableObject
- TBoldElement
- TBoldDomainElement
- TBoldMember
- TBoldAttribute
- TBAMoment
- TBATime
Description¶
This attribute can be used to store a time. Note that even though the delphi type TTime is able to store dates, the bold attribute TBATime will remove this information before storing times.
Properties¶
| Name | Summary | Notes |
|---|---|---|
| AsSeconds | The time expressed as seconds | read-only |
| AsTime | The actual TTime value | |
| Hours | read-only | |
| Minutes | read-only | |
| Seconds | read-only |
AsSeconds¶
AsSeconds returns the time value expressed as seconds, using the formula
| AsSeconds := Seconds + (Minutes * 60) + (Hours * 3600) |
|---|
See Also
AsTime¶
This property holds the native Delphi representation of the attribute.
Hours¶
Minutes¶
Seconds¶
Methods¶
| Name | Summary | Notes |
|---|---|---|
| AssignContentValue | protected, override | |
| AssignValue | override | |
| GetStringRepresentation | protected, override | |
| ProxyClass | protected, override | |
| ProxyInterface | override | |
| SetStringRepresentation | protected, override | |
| ValidateCharacter | override | |
| ValidateString | override |
AssignContentValue¶
AssignValue¶
GetStringRepresentation¶
function GetStringRepresentation(Representation: TBoldRepresentation): string; override; See also Ancestor Method
ProxyClass¶
ProxyInterface¶
function ProxyInterface(const IId: TGUID; Mode: TBoldDomainElementProxyMode; out Obj): Boolean; override; See also Ancestor Method
SetStringRepresentation¶
procedure SetStringRepresentation(Representation: TBoldRepresentation; Value: string); override; See also Ancestor Method
ValidateCharacter¶
function ValidateCharacter(C: AnsiChar; Representation: TBoldRepresentation): Boolean; override; See also Ancestor Method
Returns True if C is one of '0'..'9' or time separator.
ValidateString¶
function ValidateString(Value: string; Representation: TBoldRepresentation): Boolean; override; See also Ancestor Method
True if the string can be converted to a time.
Generated from the Bold 4.0 help (Help/BfD.chm) by Tools/chm2mkdocs.py; member lists reflect Bold 4.0, see the source for members added since.