[Overview][Constants][Procedures and functions] Reference for unit 'dateutils' (#rtl)

EncodeDateDay

Encodes a year and day of year to a DateTime value

Declaration

Source position: dateutil.inc line 319

function EncodeDateDay(

  const AYear: Word;

  const ADayOfYear: Word

):TDateTime;

Arguments

AYear

  

Year part.

ADayOfYear

  

Day of the year part

Function result

DateTime value representing the date specified by AYearand ADayOfYear.

Description

EncodeDateDayencodes the values AYearand ADayOfYearto a date value and returns this value.

For an example, see DecodeDateDay.

Errors

If any of the arguments is not valid, then an EConvertErrorexception is raised.

See also

EncodeDateMonthWeek

  

Encodes a year, month, week of month and day of week to a DateTime value

DecodeDateDay

  

Decode a DateTime value in year and year of day.

EncodeDateTime

  

Encodes a DateTime value from all its parts

EncodeDateWeek

  

Encode a TDateTimevalue from a year, week and day of week triplet

TryEncodeDateTime

  

Encode a Year, Month, Day, Hour, minute, seconds, milliseconds tuplet to a TDateTimevalue

TryEncodeDateMonthWeek

  

Encode a year, month, week of month and day of week to a TDateTimevalue

TryEncodeDateWeek

  

Encode a year, week and day of week triplet to a TDateTimevalue