- Introduction to WorkXpress
- Building Your Application
- Examples and Best Practices
- Technical Manual
The time field stores a time. Internally, the stored value for is time field the number of seconds elapsed from 12:00 AM UTC to the stored time. In the interface, this time appears in 12-hour format. The display of this field is affected by Timezone and Locale settings.
Field features can be edited by clicking on the orange field icon when the presentation layer is displayed.
The Time Field has three interface parts, but only one storage part.
Interface Parts
Storage Part
The time field has only one output format, which returns the full field (e.g. 12:34 PM)
Though a Time is stored internally as a number, when interacting with the Field on a page, you must input a time. Setting the hour and minute are done by typing a number into the hour and minute Field Parts. There is no validation on these parts, though only two characters are allowed in each part. Entering non-real times is allowed, though, and is handled by adjusting the time by however many hours or minutes exceed 24 or 60, respectively. For example, if 45:75 AM is entered and saved into a Date and Time Field, it would adjust the value to 10:15 PM. Selecting AM or PM is done by using the AM/PM drop-down.
Setting With Actions
When setting the Time Field through actions, two different input formats may be used. As with other Field types, the stored value from another Time Field may be used to save into a Time Field. Since the stored value for these Fields is a timestamp, any timestamp value may also be used to save into a Time Field (may be calculated from an expression or extracted from a Date & Time or Date Field).
In addition to this, the text output of the Time Field (e.g. 4:23 AM) may also be used to save into the Time Field.
The time field cannot be filtered.
Date and Time settings should change automatically in non-US countries. For more information, read the Regionalization Field Settings page, or if you need to change your settings manually to simulate being in another country, try out these settings.