API / geotoolkit / util / DateTimeFormat / DateTimeFormat
util.DateTimeFormat.DateTimeFormat
Defines a class for formatting date time
↳
DateTimeFormat
Constructors
Methods
Css Properties
| Name | Type | Description |
|---|---|---|
format | string | Date time format |
timezone | TimeZone | Time zone |
Methods
▸ clone(): Format
All inheritors should implement copy constructor or provide custom implementation for this method
clone
▸ Protected copyConstructor(src): DateTimeFormat
copy constructor
| Name | Type | Description |
|---|---|---|
src | DateTimeFormat | Source to copy from |
this
▸ format(number): string
Formats number to string
| Name | Type | Description |
|---|---|---|
number | number | number to be formatted |
string
▸ getClassName(): string
string
▸ getFormat(): string
string
▸ getProperties(): Options
Gets all the properties pertaining to this object
▸ getTimeZone(): string
string
▸ setProperties(properties?): DateTimeFormat
Sets properties
| Name | Type | Description |
|---|---|---|
Optional properties | Options | properties pertaining to this object |
▸ Static getClassName(): string
string
▸ Static getInstance(locale?): DateTimeFormat
Return instance of the number format
| Name | Type | Description |
|---|---|---|
Optional locale | string | locale of formatter. Locals are not supported for now. |
instance of the format