Topic : The ATARI Compendium
Author : Scott Sanders / JAY Software
Version : 1.25 (20/6/2003)
Subject : Documentation
Nodes : 1117
Index Size : 32614
HCP-Version : 6
Compiled on : Atari
@charset : UTF-8
@lang : en
@default :
@help : %About
@options : +g -i -t4 +y +z
@width : 100
View Ref-FileSettime()Tgettime()Tgetdate()Gettime() XBIOSSyntaxLONG Gettime( VOID )
Function Gettime() returns the current IKBD time.
Opcode 23 (0x17)
Availability All TOSversions.
Binding move.w #$17,-(sp)
trap #14
addq.l #2,sp
Return Value Gettime() returns a LONG bit array packed with the current
IKBD time as follows:
Bits Meaning
0-4 Seconds/2 (0-29)
5-10 Minute (0-59)
11-15 Hour (0-23)
16-20 Day (1-31)
21-24 Month (1-12)
25-31 Year-1980 (0-127)
The return value can be represented in a C structure as
follows:
typedef struct
{
unsigned year:7;
unsigned month:4;
unsigned day:5;
unsigned hour:5;
unsigned minute:6;
unsigned second:5;
} BIOS_TIME;
See Also Settime(), Tgettime(), Tgetdate()