all repos — min @ a82d0c84bcb1727bccc1f0ab1a252d7762d1d028

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
'min-test require :test
;;;

"time" test.describe

  (time.stamp 1464951736 >) test.assert

  (time.now 1464951736 >) test.assert

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

  (1464951736 "yy-MM-dd" time.format "16-06-03" ==) test.assert

  (1464951736 time.info time.to-timestamp 1464951736 ==) test.assert

  (1464951736 time.info 'second dget 16 ==) test.assert

  (1464951736 time.info 'timezone dget integer?) test.assert

  test.report
  stack.clear