2 Copyright © 1995-2007, The AROS Development Team. All rights reserved.
5 Convert a time into a string, reentrant.
8 extern long __gmtoffset
;
10 /*****************************************************************************
15 struct tm
* localtime_r (
22 Splits the system time in seconds into a structure.
23 The members of the tm structure are:
26 \item {tm_sec} The number of seconds after the minute, normally in
27 the range 0 to 59, but can be up to 61 to allow for leap
30 \item{tm_min} The number of minutes after the hour, in the range 0
33 \item{tm_hour} The number of hours past midnight, in the range 0 to
36 \item{tm_mday} The day of the month, in the range 1 to 31.
38 \item{tm_mon} The number of months since January, in the range 0 to
41 \item{tm_year} The number of years since 1900.
43 \item{tm_wday} The number of days since Sunday, in the range 0 to
46 \item{tm_yday} The number of days since January 1, in the range 0
49 \item{tm_isdst} A flag that indicates whether daylight saving time
50 is in effect at the time described. The value is positive
51 if daylight saving time is in effect, zero if it is not,
52 and negative if the information is not available.
57 tt - A time in seconds from the 1. Jan 1970
58 tm - A struct tm to store the result in
61 The pointer passed in tm.
73 localtime_r (&tt, &tm);
78 time(), ctime_r(), asctime_r(), gmtime_r()
82 ******************************************************************************/
86 ti
-= __gmtoffset
* 60;
88 return gmtime_r (&ti
, tm
);