all repos — min @ 880bd397e25c6a1de1f924325b6f1b423b2189ed

A small but practical concatenative programming language.

tests/time.min

 1
 2
 3
 4
 5
 6
 7
 8
 9
 10
 11
 12
 13
 14
 15
 16
 17
 18
 19
 20
 21
'test require :test
;;;

"time" *test/describe

  (timestamp 1464951736 >) *test/assert

  (now 1464951736 >) *test/assert

  (1464951736 datetime "2016-06-03T11:02:16Z" ==) *test/assert

  (1464951736 "yy-MM-dd" tformat "16-06-03" ==) *test/assert

  (1464951736 timeinfo to-timestamp 1464951736 ==) *test/assert

  (1464951736 timeinfo 'second dget 16 ==) *test/assert

  (1464951736 timeinfo 'timezone dget integer?) *test/assert

  *test/report
  clear-stack