Class sap.ui.model.type.DateTimeModule: sap/ui/model/type/DateTime

extends Date

This class represents datetime simple types.

Constructor Summary
new sap.ui.model.type.DateTime(oFormatOptions?, oConstraints?)Constructor for a DateTime type.
Method Summary
sap.ui.model.type.DateTime.extend(sClassName, oClassInfo?, FNMetaImpl?)Creates a new subclass of class sap.ui.model.type.DateTime with name sClassName and enriches it with the information contained in oClassInfo.
sap.ui.model.type.DateTime.getMetadata()Returns a metadata object for class sap.ui.model.type.DateTime.
Methods borrowed from class sap.ui.model.type.Date
Methods borrowed from class sap.ui.model.Type
Methods borrowed from class sap.ui.base.Object
Constructor Detail
new sap.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. 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)
Method Detail
sap.ui.model.type.DateTime.extend(sClassName, oClassInfo?, FNMetaImpl?): function
Creates a new subclass of class sap.ui.model.type.DateTime 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.

Parameters:
{string}sClassName Name of the class being created
{object}oClassInfo? Object literal with information about the class
{function}FNMetaImpl? Constructor function for the metadata object; if not given, it defaults to sap.ui.core.ElementMetadata
Returns:
{function} Created class / constructor function
sap.ui.model.type.DateTime.getMetadata(): sap.ui.base.Metadata
Returns a metadata object for class sap.ui.model.type.DateTime.
Returns:
{sap.ui.base.Metadata} Metadata object describing this class