NowLocal Function

Description:
This function returns the time that corresponds the time zone specified in the template profile or a fixed UTC timezone value specified as a parameter in the function.
On the template profile you can specify the time zone for the questionnaire and for the generated document. The values of the profile settings can be obtained using the database parameters {
db_timezone_input
} for the questionnaire value and {
db_timezone_output
} for the generated document value. When used without additional parameters, NowLocal() will include any relevant Daylight Saving Time.
An alternative function for returning the current time is the Now Function, which returns the current time on the server machine.
Returns:
Time
Parameters:
Parameter
Data Type
Description
1
Number
Time zone expressed as a positive or negative offset from UTC
Examples:
When using functions inside a field, remember the field brackets:
{NowLocal()}
Expression
Result
Now
02:13:44 pm
Local time on the server
NowLocal()
08:13:44 am
Central Standard Time, as specified in the template profile
NowLocal(0)
02:13:44 pm
UTC
NowLocal(5.5)
07:43:44 pm
UTC+5.5
NowLocal(-25)
01:13:44pm
UTC-25

Related content