all repos — min @ 77d6d7fdbe07ff6f7c0b10961599e476d98560b8

A small but practical concatenative programming language.

lib/time.nim

 1
 2
 3
 4
 5
 6
 7
 8
 9
 10
 11
 12
 13
 14
 15
import times, tables
import 
  ../core/types,
  ../core/parser, 
  ../core/interpreter, 
  ../core/utils

# Time

minsym "timestamp", i:
  i.push getTime().int.newVal

minsym "now", i:
  i.push epochTime().newVal