httk.store.store_timestamp¶
Backend-neutral store-managed timestamp helpers.
Attributes¶
Exceptions¶
A writable store clock is behind its process-local timestamp mark. |
Functions¶
|
Capture one guarded store-unit timestamp from a nanosecond clock. |
|
Advance a process-local timestamp high-water mark after a successful save. |
|
Encode the persisted timestamp configuration marker. |
|
Parse a persisted timestamp marker, returning |
|
Convert a nanosecond, aware datetime, or RFC3339 string to store units. |
Module Contents¶
- exception httk.store.store_timestamp.StoreClockRegressionError(mark_ns, clock_ns)[source]¶
Bases:
RuntimeErrorA writable store clock is behind its process-local timestamp mark.
- httk.store.store_timestamp.capture_store_timestamp(clock, resolution, mark, *, allow_clock_regression=False, clock_regression_grace=True)[source]¶
Capture one guarded store-unit timestamp from a nanosecond clock.
- httk.store.store_timestamp.advance_store_timestamp_mark(mark, captured, *, allow_clock_regression)[source]¶
Advance a process-local timestamp high-water mark after a successful save.
- httk.store.store_timestamp.encode_store_timestamp_state(enabled, resolution)[source]¶
Encode the persisted timestamp configuration marker.