Int 1AH [AT] [PS/2] Function 04H Get date

Reads the current date from the CMOS time/date chip.

Call with:

AH = 04H

Returns:

CH = century (19 or 20) in binary coded decimal (BCD)

CL = year in BCD

DH = month in BCD

DL = day in BCD

and, if clock running

Carry flag = clear

or, if clock stopped

Carry flag = set