2 Copyright © 2004-2013, The AROS Development Team. All rights reserved.
5 POSIX.1-2001 function ftime().
6 Function is deprecated and removed from POSIX.1-2008
10 /*****************************************************************************
13 #include <sys/timeb.h>
21 Get info on current time and timezone.
24 tb - Structure to fill in time, it has the following fields
25 * time: time in seconds since UNIX epoch
26 * millitm: milliseconds since last second
27 * timezone: minutes time west of Greenwich
28 * dstflag: type of daylight saving time
29 millitm is currently always multiple of 1000
30 dstflag is the same as from timezone information from the
31 gettimeofday() function.
37 This function is deprecated and not present anymore in POSIX.1-2008.
38 This function should not be used in new code and old code should
39 be fixed to remove usage.
40 As an alternative gettimeofday() can be used.
50 This function is part of libarosc.a and may be removed in the future.
52 ******************************************************************************/
57 gettimeofday(&tv
, &tz
);
60 tb
->millitm
= tv
.tv_usec
*1000;
61 tb
->timezone
= tz
.tz_minuteswest
;
62 tb
->dstflag
= tz
.tz_dsttime
;