Class sap.ca.ui.model.type.DateTimeModule: sap/ca/ui/model/type/DateTime
This class represents datetime simple types.
Deprecated API:Deprecated API:Since version 1.28. This control has been made available in sap.ui.core. Please use sap.ui.model.type.DateTime instead! This control will not be supported anymore.
Constructor Summary
Method Summary
sap.ca.ui.model.type.DateTime.extend(sClassName, oClassInfo?, FNMetaImpl?)Creates a new subclass of class sap.ca.ui.model.type.DateTime with name
sClassName
and enriches it with the information contained in oClassInfo
.sap.ca.ui.model.type.DateTime.getMetadata()Returns a metadata object for class sap.ca.ui.model.type.DateTime.
Methods borrowed from class sap.ca.ui.model.type.Date
Methods borrowed from class sap.ui.model.Type
Methods borrowed from class sap.ui.base.Object
Constructor Detail
new sap.ca.ui.model.type.DateTime(oFormatOptions?, oConstraints?)
Constructor for a DateTime type.
Parameters:
{object} | oFormatOptions? | options used to create a DateFormat for formatting / parsing to/from external values and optionally for a second DateFormat to convert between the data source format (Model) and the internally used JavaScript Date.format. For both DateFormat objects, the same options are supported as for DateFormat.getDateTimeInstance. You can use an extra boolean option UTC to format in UTC ({style: "short", UTC: true}). Note that this differs from the base type. |
{object} | oConstraints? | value constraints. Supports the same kind of constraints as its base type Date, but note the different format options (Date vs. DateTime) |
- Deprecated:
- Deprecated API:Since version 1.28. This control has been made available in sap.ui.core. Please use sap.ui.model.type.DateTime instead! This control will not be supported anymore.
Method Detail
sap.ca.ui.model.type.DateTime.extend(sClassName, oClassInfo?, FNMetaImpl?): function
Creates a new subclass of class sap.ca.ui.model.type.DateTime with name
sClassName
and enriches it with the information contained in oClassInfo
. For a detailed description of oClassInfo
or FNMetaImpl
see Object.extend.
Parameters:
{string} | sClassName | name of the class to be created |
{object} | oClassInfo? | object literal with informations about the class |
{function} | FNMetaImpl? | alternative constructor for a metadata object |
Returns:
{function} | the created class / constructor function |
sap.ca.ui.model.type.DateTime.getMetadata(): sap.ui.base.Metadata
Returns a metadata object for class sap.ca.ui.model.type.DateTime.
Returns:
{sap.ui.base.Metadata} | Metadata object describing this class |