diff options
| author | 2023-06-02 20:05:01 +0200 | |
|---|---|---|
| committer | 2023-06-02 20:05:01 +0200 | |
| commit | efe23de89e5f1467b678f1c40b42336523e5a1c4 (patch) | |
| tree | 8aa6eb3e4f5857799ae010fb9a5f2cf24f2483bc /test | |
| parent | finalize api draft 1, add tests (diff) | |
add date/format to api
Diffstat (limited to 'test')
| -rw-r--r-- | test/02-api.janet | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/test/02-api.janet b/test/02-api.janet index f759105..eb0666f 100644 --- a/test/02-api.janet +++ b/test/02-api.janet @@ -12,3 +12,10 @@ (def before (date/update-time* now {:sec -1 :min dec})) (def after (date/update-time* now {:sec 61 :min inc})) (assert (> after now before)) + +# default format +(assert (date/format now)) +# utc default format +(assert (date/format now :default true)) +# format string +(assert (date/format now :%c)) |
