On 11/8/2016 2:29 PM, Robby Findler wrote:
find-seconds returns a number, not a date? Maybe seconds->date is the
culprit here?
Robby
Spoke too soon. 1 combination gets it right: (seconds->date
(find-seconds ... #F) #T).
Note that (for me) Nov 6 should be DST [until 2AM], but Nov 7 should be
EST.
------------------------------
(require racket/date)
(seconds->date (find-seconds 0 0 0 6 11 2016 #f) #f)
(seconds->date (find-seconds 0 0 0 6 11 2016 #f) #t)
(seconds->date (find-seconds 0 0 0 6 11 2016 #t) #f)
(seconds->date (find-seconds 0 0 0 6 11 2016 #t) #t)
(displayln "")
(seconds->date (find-seconds 0 0 0 7 11 2016 #f) #f)
(seconds->date (find-seconds 0 0 0 7 11 2016 #f) #t)
(seconds->date (find-seconds 0 0 0 7 11 2016 #t) #f)
(seconds->date (find-seconds 0 0 0 7 11 2016 #t) #t)
=>
date* 0 0 0 6 11 2016 0 310 #f 0 0 "UTC")
(date* 0 0 20 5 11 2016 6 309 #t -14400 0 "Eastern Daylight Time")
(date* 0 0 4 6 11 2016 0 310 #f 0 0 "UTC")
(date* 0 0 0 6 11 2016 0 310 #t -14400 0 "Eastern Daylight Time")
(date* 0 0 0 7 11 2016 1 311 #f 0 0 "UTC")
(date* 0 0 19 6 11 2016 0 310 #f -18000 0 "Eastern Standard Time")
(date* 0 0 5 7 11 2016 1 311 #f 0 0 "UTC")
(date* 0 0 0 7 11 2016 1 311 #t -14400 0 "Eastern Daylight Time")
------------------------------
George
--
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 racket-users+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.