all repos — min @ f7c8ccacbc3c0a2ff5d0ca7bde239e881157ec5a

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