Tgetdate
Get GEMDOS Date
Tgetdate() Opcode = 42 ($2A)
Gets current date according to GEMDOS.
C macro format
int date;
date = Tgetdate();
Machine language format
move.w #$2A, - (sp)
trap #1
addq.l #2,sp
Inputs
None
Results
DO date word A 16-bit code that specifies the GEMDOS date.
Interpretation of GEMDOS date:
Bit Number Description Range
0-4 Day 1-31
5-8 Month 1-12
9-15 Year - 1980 0-119
See also
Tsetdate(), Tgettime(), Tsettime()
259