JCL Help:ISOWeekToDateTime

From Project JEDI Wiki
Jump to navigationJump to search


Summary

Returns the date denoted by year, week and weekday.


Pascal

 function ISOWeekToDateTime(const Year: Integer; const Week: Integer; const Day: Integer): TDateTime;


Parameters

Parameters Description
const Year: Integer base-year of the ISO-week.
const Week: Integer ISO week of the year.
const Day: Integer Day in the week (1=Monday, ... 7=Sunday).


Return Value

The function returns the TDateTime value of the specified day


Description

ISOWeekToDateTime returns the date denoted by year, week and weekday. according to the ISO 8601 specification.


See Also

ISOWeekNumber


About

Unit

JclDateTime


Donator

Anonymous


Notes

The specified date is assumed to be after 1/1/0001 and before 1/1/10000). According to ISO 8601 the reference year for the week can be the same as in DateTime, the previous or the next year. The constants ISOFirstWeekDay=2 and ISOFirstWeekMinDays=4 are defined for ISO compatibility, Other values might be useful in some instances and can be set in the source code.


Contribute to this help topic

This documentation wiki is based on the collaborative effort of Project JEDI users. Your edits are welcome in order to improve documentation quality: edit this page