Skip to main content

Module time

Module time 

Source
Expand description

Time-based validation: deadlines, cooldowns, staleness.

Functionsยง

check_cooldown_elapsed
Check that enough time has elapsed since the last operation.
check_deadline_not_passed
Check that a deadline has NOT passed (now < deadline).
check_deadline_passed
Check that a deadline has passed (now >= deadline).
check_in_future
Check that a timestamp is in the future.
check_in_past
Check that a timestamp is in the past.
check_staleness
Check that data is not stale (updated recently enough).