2 Copyright © 1995-2001, The AROS Development Team. All rights reserved.
5 Return the current time in seconds.
13 /*****************************************************************************
24 time() returns the time since 00:00:00 GMT, January 1, 1970,
28 tloc - If this pointer is non-NULL, then the time is written into
29 this variable as well.
32 The number of seconds.
35 This function must not be used in a shared library or
36 in a threaded application.
41 // tt1 and tt2 are the same
50 ctime(), asctime(), localtime()
54 ******************************************************************************/
59 DateStamp (&t
); /* Get timestamp */
62 2922 is the number of days between 1.1.1970 and 1.1.1978 (2 leap
63 years and 6 normal). The former number is the start value
64 for time(), the latter the start time for the AmigaOS
66 1440 is the number of minutes per day
67 60 is the number of seconds per minute
69 tt
= ((t
.ds_Days
+ 2922) * 1440 + t
.ds_Minute
+ __gmtoffset
) * 60
70 + t
.ds_Tick
/ TICKS_PER_SECOND
;