Representing time-only values

As has been described above Curam has a base type for "date-only" and "date-time" values, however there is no specific base type for "time-only" values.

A CURAM_TIME domain is provided in out-of-the-box Curam and this is used by the client infrastructure to display a corresponding time only widget, in addition to performing certain processing when parsing and formatting values based on this domain. However, the underlying data representation is the same as for SVR_DATETIME and when working with time-only domains the corresponding server-side code must completely ignore the date part of the value.

Because time-only domains are based on the SVR_DATETIME domain, it should be noted that the default values will also be the same. The "zero date time" of 0001-01-01 00:00:00 is the value sent to the server if the field is left blank. If the field is set to 00:00, then 00:00 time value of today's date is sent.

The time input field rendered for CURAM_TIME domain is an editable combo box as the example below shows. The combo box contains selectable time values for every 30 minutes. The exact time value can also be entered directly in the field.

The values to be selected are in the application-wide format set in ApplicationConfiguration.properties, including AM/PM for the 12 hour display. A manually typed value should follow the same format.