Racket Slack Archive
advent-of-codeamnesicannouncementsapi-designawesomebdd-μ-algebrabeginnersbrazilchoicec-papercicontractdevdrracketemacsespañolfroggamejamgamesgeneralgermanygt-benchmarksgt-benchmarks-archivehakaruhtdpicfp-lindenmayerjobslenslinkletmath-scribblemetapictminitestmusicnewspicturecompetition19pkgplotpycketquickscript-competitionracketracket-italyracket-schoolracketscriptrandomrashrattlerconrealm-of-racketreleaserhombusscribble-mathshamsketchingslack-archivesozspace-efficientstandard-fishsummer-schoolsummerschoolsurveysyntax-parse-exampletest-channeltheorytriageturnstiletyped-w3sukurlangvimwatching-githubwebwelcomewg-racket-survey-2019wikiwordle
markx
2018-8-3 17:17:03

Hi what is a good way to get a timestamp string, something like 2018/08/03 13:16:49?


lexi.lambda
2018-8-3 17:48:06

@markx The gregor library is nice for dealing with dates and times. http://docs.racket-lang.org/gregor/index.html


lexi.lambda
2018-8-3 17:49:04

Specifically, you probably want ~t. http://docs.racket-lang.org/gregor/time-format.html#%28def._%28%28lib._gregor%2Fmain..rkt%29._~7et%29%29


markx
2018-8-3 22:58:51

ah thanks.


Racket Slack Archive

  • Racket Slack Archive
  • ben.knoble+racket+slack@gmail.com
  • racket
  • racketlang

An archive of the Racket Slack