On Thursday, September 22, 2016 at 10:55:11 AM UTC-7, Geoffrey Knauth wrote:
> I was using Racket's date. Then I found it was creating a local time when I needed UTC. So I started using moments from (require gregor). Now I'm trying to figure out how to get either a regular date from a moment, or better, how I can get epoch seconds (from 1970-01-01T00:00:00Z) from a moment. I suppose I could compute the since-epoch seconds difference myself, I just don't know if it's in there already and I just missed it.
>
> Geoff
I believe ->posix[1] is the function you're looking for
[1] https://docs.racket-lang.org/gregor/datetime-provider.html?q=gregor#%28def._%28%28lib._gregor%2Fmain..rkt%29._-~3eposix%29%29