polydat 0.1.0

Polydat — generation kernel for deterministic variate generation in nb-rs (formerly nbrs-variates)
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
// datetime_context.gk — Datetime functions and context nodes.
//
// Exercises epoch manipulation, timestamp formatting, and
// non-deterministic context nodes.

input cycle: u64
epoch := epoch_scale(cycle, 1000)
ts := to_timestamp(epoch_offset(cycle, 1704067200000))
(year, month, day, hour, minute, second, millis) := date_components(epoch_offset(cycle, 1704067200000))
wall := current_epoch_millis()
ctr := counter()
tid := thread_id()