Re: [Haskell-cafe] Working with multiple time zones

2008-02-17 Thread Bjorn Bringert
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

Re: [Haskell-cafe] Working with multiple time zones

2008-02-17 Thread Daniel Fischer
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

Re: [Haskell-cafe] Working with multiple time zones

2008-02-17 Thread Brandon S. Allbery KF8NH
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

Re: [Haskell-cafe] Working with multiple time zones

2008-02-17 Thread Daniel Fischer
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

[Haskell-cafe] Working with multiple time zones

2008-02-16 Thread Dave Hinton
(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

Re: [Haskell-cafe] Working with multiple time zones

2008-02-16 Thread Ryan Ingram
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