On Sat, Aug 22, 2015 at 4:02 PM, Jon Zeppieri <zeppi...@gmail.com> wrote:
>
>
> (require gregor)
> (require racket/match)
>
> (define (sql-timestamp->moment t)
>   (match-define (sql-timestamp y mo d h mi s n tz) t)
>
>   (moment y mo d h mi s n #:tz (or tz 0)))

Actually, a sql-timestamp with a #f tz means that the timestamp
doesn't have any zone info, so that would actually correspond to
gregor's `datetime` (instead of `moment`, which includes tz info).

-Jon

-- 
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.

Reply via email to