On Feb 17, 2008 12:13 AM, Dave Hinton [EMAIL PROTECTED] wrote:
(This is a toy program to demonstrate only the part of my real program
that I'm having trouble with.)
Suppose I'm writing a program to print the current time in various
time zones. The time zones are to be given symbolically on
Am Sonntag, 17. Februar 2008 16:09 schrieb Bjorn Bringert:
Interesting, it works for me:
$ ghc --make hsnow.hs -o hsnow
[1 of 1] Compiling Main ( hsnow.hs, hsnow.o )
Linking hsnow ...
$ ./hsnow Europe/Paris Europe/Moscow Europe/London
Europe/Paris2008-02-17 16:07:43.009057
On Feb 17, 2008, at 13:22 , Daniel Fischer wrote:
Am Sonntag, 17. Februar 2008 17:26 schrieb Daniel Fischer:
Looking at the code in HsTime.c, it might be a difference between
localtime
and localtime_r.
Indeed, mucking about a bit with HsTime.c, so that either
a) localtime is called
Am Sonntag, 17. Februar 2008 17:26 schrieb Daniel Fischer:
Looking at the code in HsTime.c, it might be a difference between localtime
and localtime_r.
Indeed, mucking about a bit with HsTime.c, so that either
a) localtime is called instead of localtime_r
or
b) tzset() is done before
(This is a toy program to demonstrate only the part of my real program
that I'm having trouble with.)
Suppose I'm writing a program to print the current time in various
time zones. The time zones are to be given symbolically on the command
line in the form Europe/London or America/New_York. The
I don't have anything to answer for the interesting part of your
question, but if you're just interested in getting something
working...
On Feb 16, 2008 3:13 PM, Dave Hinton [EMAIL PROTECTED] wrote:
2. If GHC's implementation is working as designed, how do I translate
the C program above into