IsTimeBefore

True if the current in-fiction time is strictly before the given clock time. For “at or after” use IsTimeAfter. The two functions partition the day cleanly: at any given moment exactly one of IsTimeBefore(t) and IsTimeAfter(t) is true.

Category: Time Returns: bool

Signature

IsTimeBefore(clockTime)

The argument is a clock time written as quoted “HH:MM” text, like ‘18:30’. The validator rejects anything else.

Examples

IsTimeBefore('12:00')           // true in the morning
IsTimeBefore('18:00')           // true any time before 6 PM
IsTimeBefore('06:00') || IsTimeAfter('22:00')
                                // it's "night": before 6 AM or after 10 PM

Notes

  • Requires time to be enabled for the project (Project, then Time). With time disabled, any expression using this function fails validation.
  • The argument must be a quoted “HH:MM” literal, not a variable or a computed string. IsTimeBefore(var_deadline) fails validation even if var_deadline holds a well-formed time string at runtime; write the literal directly.
  • Pairs with IsTimeAfter: the two partition the day cleanly, so exactly one of IsTimeBefore(t) and IsTimeAfter(t) is true at any moment.
Docs last synced: 2026-07-18
Screenshot viewer