Interrupt 21h Function 5706h

Retrieves the creation date and time for the given file.

mov ax, 5706h           ; Get Creation Date and Time
mov bx, Handle          ; see below
int 21h

jc  error
mov [Time], cx          ; creation time
mov [Date], dx          ; creation date
mov [MilliSeconds], si  ; number of 10 ms intervals in 2 seconds

Parameters

Handle
File handle.

Return Value

Clears the carry flag and sets the CX, DX, and SI registers to these values if successful:

CX Creation time. The time is a packed 16-bit value with the following form:

Bits Contents
0–4 Second divided by 2
5–10 Minute (0–59)
11–15 Hour (0–23 on a 24-hour clock)

DX Creation date. The date is a packed 16-bit value with the following form:

Bits Contents
0–4 Day of the month (1–31)
5–8 Month (1 = January, 2 = February, and so on)
9–15 Year offset from 1980 (that is, add 1980 to get the actual year)

SI Number of 10 millisecond intervals in 2 seconds to add to the MS-DOS time. The number can be a value in the range of 0 to 199.

Otherwise, the function sets the carry flag and sets the AX register to an error value.