Commit 61316922 authored by sof's avatar sof
Browse files

[project @ 1999-09-12 14:26:32 by sof]

Let's try again - added get_ZONE(), which retrieves current
timezone string. Need to do this since cygwin doesn't initialise
its tzname[] properly (=> need to call tzset() explicitly.)
parent 2507462b
/*
* (c) The GRASP/AQUA Project, Glasgow University, 1994-1998
*
* $Id: stgio.h,v 1.10 1999/02/04 12:13:16 sof Exp $
* $Id: stgio.h,v 1.11 1999/09/12 14:26:32 sof Exp $
*
* Helper code for GHC's IO subsystem.
*/
......@@ -214,6 +214,7 @@ StgInt prim_SETZONE ( StgAddr, StgAddr );
StgInt sizeof_word ( void );
StgInt sizeof_struct_tm ( void );
StgInt sizeof_time_t ( void );
char* get_ZONE ( StgAddr );
/* toLocalTime.c */
StgAddr toLocalTime (StgInt, StgByteArray, StgByteArray);
......
/*
* (c) The GRASP/AQUA Project, Glasgow University, 1994-1998
*
* $Id: timezone.c,v 1.3 1999/09/12 14:23:52 sof Exp $
* $Id: timezone.c,v 1.4 1999/09/12 14:26:32 sof Exp $
*
* Timezone Runtime Support
*/
......@@ -40,6 +40,7 @@ get_ZONE (StgAddr x)
* unless tzset() is called, so better do it here.
*/
tzset();
#endif
return (ZONE(x));
}
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment