Time inputs#

easysnowdata.temporal#

The one temporal input, time (design contract §2.2), and “today”.

parse_time accepts anything pandas.to_datetime() or STAC datetime syntax accepts — "2023-10", ("2023-10-01", "2024-06-30"), "2023-10/2024-06", a slice, a pandas.Period — and returns an inclusive (start, end) pair of timestamps. Partial dates expand to the period they name ("2023-10" is the whole month). An open end means “now”, computed at call time, never at import (§2.9).

parse_time

Return (start, end) for any supported time input.

to_stac_datetime

Render time as a STAC datetime interval (start/end, RFC 3339 UTC).

today

Today's date as YYYY-MM-DD (computed when called).

now

The current UTC time as a naive timestamp (computed when called).