Dates and Times
Because OneScript is a researchers programming language dates and times are handled in a specific manner.
A basic date can be defined as follows:
Where the year, month and day are defined in that order in the format yyyy-mm-dd
. To make the date specific to a time zone add the following:
Adding the three letter time zone or the time difference based on the current utc, will help control how comparisons with the date are handled against other dates.
This approach means more when it comes to specifying times (either on their own or in combination with the date):
Date and Time Comparisons
Whilst dates and times can have a time zone associated with it, OneScript supports the idea of comparing dates and times either with the time zone or without. The benefit of this is all for validation for local time zones.
Consider the following; A respondent is asked to enter the time that they saw something. This will always be based in their local time zone.
Last updated