class sap.ui.model.type.Time

Control sample: sap.ui.model.type.Time
Visiblity: public
UX Guidelines:
Implements:
Available since: N/A
Module: sap/ui/model/type/Time
Application Component: CA-UI5-COR

This class represents time simple types.


Constructor

Constructor for a Time type.

new sap.ui.model.type.Time(oFormatOptions?, oConstraints?)
Param Type Default Value Description
oFormatOptions? object

Formatting options. For a list of all available options, see DateFormat.

source? object

Additional set of options used to create a second DateFormat object for conversions between string values in the data source (e.g. model) and Date. This second format object is used to convert from a model string to Date before converting the Date to string with the primary format object. Vice versa, this 'source' format is also used to format an already parsed external value (e.g. user input) into the string format that is expected by the data source. For a list of all available options, see DateFormat. In case an empty object is given, the default is the ISO date notation (yyyy-MM-dd).

oConstraints? object

Value constraints. Supports the same kind of constraints as its base type Date, but note the different format options (Date vs. Time).


Methods Overview

Method Description
sap.ui.model.type.Time.extend

Creates a new subclass of class sap.ui.model.type.Time with name sClassName and enriches it with the information contained in oClassInfo.

oClassInfo might contain the same kind of information as described in sap.ui.model.type.Date.extend.

sap.ui.model.type.Time.getMetadata

Returns a metadata object for class sap.ui.model.type.Time.

sap.ui.model.type.Time.extend

Creates a new subclass of class sap.ui.model.type.Time with name sClassName and enriches it with the information contained in oClassInfo.

oClassInfo might contain the same kind of information as described in sap.ui.model.type.Date.extend.

Param Type DefaultValue Description
sClassName string

Name of the class being created

oClassInfo object

Object literal with information about the class

FNMetaImpl function

Constructor function for the metadata object; if not given, it defaults to the metadata implementation used by this class

sap.ui.model.type.Time.getMetadata

Returns a metadata object for class sap.ui.model.type.Time.