logo SmartSurvey / Scripting Docs
Back to Docs
Built-in Function
timeof[] System

Returns the current system time as an integer in HHMM format (e.g., 1430 for 2:30 PM). Use for time-of-day routing or to enforce interview time windows.

Returns: Integer — current time in HHMM format
Examples
expressions
timeof[]>=900 & timeof[]<=1700   -- between 9 AM and 5 PM
timeof[]<1200                    -- before noon
Returns time in HHMM integer format: 900 = 09:00, 1730 = 17:30.
Uses server/device time. Ensure timezone alignment if FIs operate across time zones.
Related