17197fed91
Maps ctx.now() (epoch-ns UTC) to a Frankfurt session bar index: emits bars_since_open:i64 = (local wall-clock minutes past the 09:00 open) / period_minutes, in tz-aware DST-correct local time. So local 09:45 reads 3 in both CEST (UTC+2) and CET (UTC+1) — the close-instant convention (spec 0050 §4.1). Trigger is an f64 Any input (value ignored, wired from close15) so the node fires once per completed bar. Open/tz/period are baked structural config, not scalar params (a timezone is not a scalar, C11). Admits chrono/chrono-tz to aura-std — vetted DST math, never hand-rolled (per-case dep policy). Last node; build-step 7 of milestone 'Strategy node vocabulary I'. closes #90
17 lines
659 B
TOML
17 lines
659 B
TOML
[package]
|
|
name = "aura-std"
|
|
edition.workspace = true
|
|
version.workspace = true
|
|
license.workspace = true
|
|
publish.workspace = true
|
|
|
|
[dependencies]
|
|
aura-core = { path = "../aura-core" }
|
|
# DST-correct wall-clock math for the `Session` node (spec 0050 §4.5). A vetted
|
|
# standard crate for timezone/DST — never hand-rolled (C16 per-case policy).
|
|
# `chrono` is already a transitive workspace dep (0.4 via aura-ingest's
|
|
# data-server); aligned to that major. `chrono-tz` brings the IANA `Europe/Berlin`
|
|
# zone + DST transitions.
|
|
chrono = { version = "0.4", default-features = false, features = ["clock"] }
|
|
chrono-tz = { version = "0.10", default-features = false }
|