2 Copyright © 1995-2018, The AROS Development Team. All rights reserved.
5 Internal arossstdc function to get current GMT offset
7 #include <proto/exec.h>
11 #include <proto/locale.h>
12 #include <exec/execbase.h>
14 #include "__stdc_intbase.h"
15 #include "__optionallibs.h"
17 /*****************************************************************************
22 int __stdc_gmtoffset (
32 The offset to GMT in minutes
35 Will return 0 when locale.library is not loaded into memory yet.
44 Will always query the current locale through locale.library to
47 ******************************************************************************/
49 struct StdCIntBase
*StdCBase
=
50 (struct StdCIntBase
*)__aros_getbase_StdCBase();
51 struct LocaleBase
*LocaleBase
;
54 if (__locale_available(StdCBase
))
57 LocaleBase
= StdCBase
->StdCLocaleBase
;
58 if ((loc
= OpenLocale(NULL
)))
60 gmtoffset
= (int)loc
->loc_GMTOffset
;