time field controls when a policy is active. Like consensus and
condition, it is written in the policy language and must evaluate to a bool. When time is not
specified, the policy is always active. When the current time falls within the defined window, the
expression evaluates to true and the policy participates in evaluation as usual. When it falls
outside the window, the expression evaluates to false, the policy is skipped for that request, and
it is reported with the OUTCOME_TIME_INACTIVE policy-evaluation outcome.
See Time-based policies for full details on time.now,
Timestamp(...), and CronSpan(...).
Grant a user temporary access for a fixed window (one-shot)
This policy allows the user to sign transactions only during March 2026 (UTC). The window is start-inclusive and end-exclusive, so it becomes active at2026-03-01T00:00:00Z and inactive at
2026-04-01T00:00:00Z. Outside the window the time field evaluates to false and the policy is
skipped.
Allow signing only during business hours
CronSpan fires once at 9:00 AM Eastern on weekdays and holds each window open for 8 hours, covering
9:00 AM–5:00 PM Monday through Friday. Because the time zone is IANA-based, the 9:00 AM fire follows
daylight saving automatically.
Model business hours as one fire plus a duration, not as an hour range.
CronSpan('0 9 * * 1-5', '8h', 'America/New_York') fires once at 9:00 AM and holds the window open
for 8 hours, producing a single continuous 9-to-5 span. An expression like 0 9-17 * * 1-5 fires
separately at 9:00, 10:00, 11:00, and so on, each opening its own 8-hour window, which is not the
same thing.Allow signing during an overnight window (crossing midnight)
A window that crosses midnight needs no special handling: fire in the evening and give it a duration that runs into the next morning. The duration is elapsed time added to the fire instant, so this opens a window every night at 10:00 PM Eastern that stays active for 8 hours — until 6:00 AM on ordinary nights.Because the duration is elapsed time added to the fire instant, the local end time shifts on
daylight-saving transition nights. For this exact expression in
America/New_York, the window ends
at 7:00 AM after spring-forward and 5:00 AM after fall-back.Bound a recurring window to a fixed date range (composed)
Becausetime is a boolean expression, you can intersect a recurring span with a one-shot bound.
This grants business-hours signing, but only through the end of 2025; afterward the && makes the
whole expression false.
Full policy combining consensus, condition, and time
Thetime field composes with the other policy fields: this policy applies only when the approver,
the request, and the current time all match. Here, members of the ops team may sign transactions to
the treasury address, but only during business hours.