Interrupt 21h Function 5707h

Sets the creation date and time for the given file.

mov ax, 5707h         ; Set Creation Date and Time
mov bx, Handle        ; see below
mov cx, Time          ; see below
mov dx, Date          ; see below
mov si, MilliSeconds  ; see below
int 21h

jc  error

Parameters

Handle
File handle.
Time
New 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)

Date
New 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)

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

Return Value

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