code wiki / _hdl_build / nx_viz_time.nx

nx_viz_time.nx

buildroot/runtime/_hdl_build/nx_viz_time.nx

2354 B59 linesdepth 2pulls 2 transitivereach 1 importersview sourcekind tooltopic viz
docsdependenciesstructsconstsfunctions

about

nx_viz_time.nx -- the TIME layer of the sovereign Nishi viz library (the d3-time-format / d3-scale time core, bits-up). Civil date from epoch (Hinnant's integer algorithm) + "YYYY-MM-DD" formatting + day-floor (the nice tick for time scales; pair with nx_viz_scale vs_linear on epoch seconds). Closes time-format + scale-time. license_tier: ORIGINAL

dependencies 1 imports · 1 importers

nx_syscalls.nx nx_viz_time.nx nx_viz_time_gate.nx

imports: nx_syscalls.nx

imported by: nx_viz_time_gate.nx

structs

none

consts

6const K_MAGIC_719468: i64 = 719468
7const K_MAGIC_146097: i64 = 146097
8const K_MAGIC_146096: i64 = 146096
9const K_MAGIC_1460: i64 = 1460
10const K_MAGIC_36524: i64 = 36524
11const K_MAGIC_86400: i64 = 86400

functions

14func vt_civil(days: i64, out3: *i64) -> i64
called by 2: vt_formatmain
32func vt_format(epoch: i64, out: *u8) -> i64
called by 1: main calls 2: sys_mmapvt_civil
54func vt_day_floor(epoch: i64) -> i64
called by 1: main
59func main() -> i64 { return 0 }