TBADateTime¶
A datetime attribute
Unit: BoldAttributes
Declaration¶
Hierarchy¶
- TObject
TBoldMemoryManagedObjectTBoldFlaggedObject- TBoldSubscribableObject
- TBoldElement
- TBoldDomainElement
- TBoldMember
- TBoldAttribute
- TBAMoment
- TBADateTime
Description¶
This attribute can be used to store a date and a time. The date and time can be read and set speparately by using AsDate and AsTime, or together with the AsDateTime. Note that this differ somewhat from how delphi regards TDate and TTime (to Delphi they are just new names for TDateTime).
Properties¶
| Name | Summary | Notes |
|---|---|---|
| AsDate | The date portion of the attribute | |
| AsDateTime | The actual datetime value of the attribute | |
| AsTime | The time portion of the attribute | |
| Days | read-only | |
| Hours | read-only | |
| Minutes | read-only | |
| Months | read-only | |
| Seconds | read-only | |
| Years | read-only |
AsDate¶
This property holds the date portion of the attribute, in native delphi format. It can be both read and written.
AsDateTime¶
This property holds the actual datetime value of the attribute. It can be both read and written.
AsTime¶
This property holds the time portion of the attribute
Days¶
Hours¶
Minutes¶
Months¶
Seconds¶
Years¶
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', space, time separator or date separator
ValidateString¶
function ValidateString(Value: string; Representation: TBoldRepresentation): Boolean; override; See also Ancestor Method
Returns true if the string can be converted to a date, a time or both.
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.