[Overview][Constants][Types][Classes][Procedures and functions][Variables] |
Try to encode a date, and indicate success.
Source position: datih.inc line 99
function TryEncodeDate( |
Year: Word; |
Month: Word; |
Day: Word; |
var Date: TDateTime |
):Boolean; |
TryEncodeDatewill check the validity of the Year, Monthand Dayarguments, and if they are all valid, then they will be encoded as a TDateTimevalue and returned in D. The function will return Truein this case. If an inbvalid argument is passed, then Falsewill be returned.
None. If an error occurs during the encoding, Falseis returned.
|
Encode a Year,Month,Day to a TDateTimevalue. |
|
|
Decode a date with additional date of the week. |
|
|
Decode a TDateTimeto a year,month,day triplet |
|
|
Try to encode a time, and indicate success. |