Re: [racket] srfi/19 UTC time

2013-05-21 Thread John Clements
On May 21, 2013, at 10:05 PM, Lewis wrote: > Thanks! I didn't know you could construct dates like that. > > According to the docs, the #f argument should give UTC. Unfortunately > on my machine it gives > > (date* 0 0 12 22 5 2013 3 141 #f 43200 0 "NZST") > > Which is local time for me. Perhap

Re: [racket] srfi/19 UTC time

2013-05-21 Thread Lewis
Thanks! I didn't know you could construct dates like that. According to the docs, the #f argument should give UTC. Unfortunately on my machine it gives (date* 0 0 12 22 5 2013 3 141 #f 43200 0 "NZST") Which is local time for me. Perhaps this is a bug? On 22/05/2013, John Clements wrote: > > On

Re: [racket] srfi/19 UTC time

2013-05-21 Thread John Clements
On May 21, 2013, at 8:51 PM, Lewis wrote: > When I use string->date in srfi/19, it defaults to my local time zone. > I see from the documentation that one can use "~z" to denote the "time > zone in RFC-822 style". A quick google of RFC-822 suggests "UT" is the > correct abbreviation for UTC. > >

[racket] srfi/19 UTC time

2013-05-21 Thread Lewis
When I use string->date in srfi/19, it defaults to my local time zone. I see from the documentation that one can use "~z" to denote the "time zone in RFC-822 style". A quick google of RFC-822 suggests "UT" is the correct abbreviation for UTC. However Welcome to Racket v5.3.4. > (require srfi/19)