[Overview][Constants][Procedures and functions] | Reference for unit 'dateutils' (#rtl) |
Encodes a year, month, week, day of week specification to a TDateTime value
Source position: dateutil.inc line 368
function EncodeDayOfWeekInMonth( |
const AYear: Word; |
const AMonth: Word; |
const ANthDayOfWeek: Word; |
const ADayOfWeek: Word |
):TDateTime; |
AYear |
|
Year |
AMonth |
|
Month in the year |
ANthDayOfWeek |
|
Week in the month |
ADayOfWeek |
|
Day of the week |
TDateTime value representing AYear , AMonthANthDayOfWeek .and ADayOfWeek.
EncodeDayOfWeekInMonth encodes AYear, AMonth, ADayOfweek and ANthDayOfweek to a valid date stamp and returns the result.
ANthDayOfweekis the N-th time that this weekday occurs in the month, e.g. the third saturday of the month.
For an example, see DecodeDayOfWeekInMonth.
If any of the values is not in range, then an EConvertError exception will be raised.
|
Calculate which occurrence of weekday in the month a given day represents |
|
|
Encodes a year, month, week of month and day of week to a DateTime value |
|
|
Returns the day of the week. |
|
|
Decode a DateTime value in year, month, day of week parts |
|
|
Encode a year, month, week, day of week triplet to a TDateTime value |
No notes exist for this page yet.