Re: [racket-users] find-seconds daylight saving

2016-11-10 Thread Jon Zeppieri
On Thu, Nov 10, 2016 at 10:52 AM, Jon Zeppieri wrote: > > > On Thu, Nov 10, 2016 at 10:45 AM, Jon Zeppieri wrote: > >> >> >> On Thu, Nov 10, 2016 at 4:52 AM, George Neuner >> wrote: >> >>> >>> On 11/9/2016 2:18 AM, Ryan Culpepper

[racket-users] Re: find-seconds daylight saving

2016-11-10 Thread Jack Firth
This thread truly terrifies me when I think of any code I ever wrote that worked with dates and times. -- You received this message because you are subscribed to the Google Groups "Racket Users" group. To unsubscribe from this group and stop receiving emails from it, send an email to

Re: [racket-users] find-seconds daylight saving

2016-11-10 Thread Jon Zeppieri
On Thu, Nov 10, 2016 at 10:45 AM, Jon Zeppieri wrote: > > > On Thu, Nov 10, 2016 at 4:52 AM, George Neuner > wrote: > >> >> On 11/9/2016 2:18 AM, Ryan Culpepper wrote: > > > >> >> Postgresql follows the ISO convention because the SQL standard follow the

Re: [racket-users] find-seconds daylight saving

2016-11-10 Thread Jon Zeppieri
On Thu, Nov 10, 2016 at 4:52 AM, George Neuner wrote: > > On 11/9/2016 2:18 AM, Ryan Culpepper wrote: > >> >> Another option is to let PostgreSQL do it for you using AT TIME ZONE (or >> the timezone function): >> >> select ('2016-11-09 01:23:00Z'::timestamptz) >> at

Re: [racket-users] Of editors and mere mortals

2016-11-10 Thread Ken MacKenzie
I have been a vim user for quite some time. After numerous attempts at setting vim up more IDE like I decided to give emacs a try as I was starting to dive deeper in the scheme/lisp/racket world. Emacs has proven to be a much more flexible setup. Granted I still think knowing vim or vi is

Re: [racket-users] Of editors and mere mortals

2016-11-10 Thread David Raymond Christiansen
On 11/05/2016 09:14 AM, Ken MacKenzie wrote: And particularly if you use emacs, what add ons or setup do you do for racket or scheme editing in general. I use mostly Emacs. Aside from what's already been recommended here, I really like DrRacket's handling of input of non-keyboard characters

Re: [racket-users] find-seconds daylight saving

2016-11-10 Thread George Neuner
On 11/9/2016 2:18 AM, Ryan Culpepper wrote: Another option is to let PostgreSQL do it for you using AT TIME ZONE (or the timezone function): select ('2016-11-09 01:23:00Z'::timestamptz) at time zone 'us/eastern'; => 2016-11-08 20:23:00 But beware that PostgreSQL interprets

Re: [racket-users] find-seconds daylight saving

2016-11-10 Thread George Neuner
Hi Ryan, On 11/9/2016 2:18 AM, Ryan Culpepper wrote: Does the following do what you want? (require srfi/19) ;; date-at-tz : Date Integer -> Date ;; Returns date of equivalent instant in given timezone. (define (date-at-tz d tz) (let ([t (date->time-utc d)]) (time-utc->date