Unit 'DateUtils' Package
[Overview][Constants][Classes][Procedures and functions][Index] [#rtl]

DateTimeToDosDateTime

Convert TDateTime format to DOS date/time format.

Declaration

Source position: dateutil.inc line 450

function DateTimeToDosDateTime(

  const AValue: TDateTime

):LongInt;

Description

DateTimeToDosDatetime takes Value, a TDateTime formatted timestamp, and recodes it to a MS-DOS encoded date/time value. This is a longint with the date/time encoded in the bits as:

0-4
Seconds divided by 2
5-10
Minutes
11-15
Hours
16-20
Day
21-24
Month
25-31
Years since 1980

See also

DosDateTimeToDateTime

  

Convert DOS date/time format to TDateTime format.


Documentation generated on: Dec 10 2024