Format Model for TO_CHAR of TimesTen Datetime Data Types
Use this format model when invoking the TO_CHAR function to convert a datetime value of TT_TIMESTAMP or TT_DATE. In addition, use this format model when invoking the TO_CHAR function to convert any numeric value other than NUMBER or ORA_FLOAT.
-
If a numeric value does not fit in the specified format, TimesTen truncates the value.
-
The format string cannot exceed 50 characters.
-
Dalways results in a decimal point. Its value cannot be changed with an NLS parameter. -
If a float with an absolute value less than
1e-126or greater than1e126is specified as input to theTO_CHARfunction, TimesTen returns an error.
| Format | Description |
|---|---|
|
|
Day of month (1-31) |
|
|
Month (1-12) |
|
|
Month (three character prefix) |
|
|
Month (full name blank-padded to 9 characters) |
|
|
Year (four digits) |
|
|
Year (with comma as shown) |
|
|
Year (last three digits) |
|
|
Year (last two digits) |
|
|
Year (last digit) |
|
|
Quarter |
|
|
Hour (1-12) |
|
|
Hour (1-12) |
|
|
Hour (0-23) |
|
|
Minute (0-59) |
|
|
Second (0-59) |
|
|
Fractions of a second to a precision of six digits |
|
|
Fractions of a second to the precision specified by |
|
|
Meridian indicator |
|
|
Meridian indicator |
|
|
Meridian indicator |
|
|
Meridian indicator |
|
|
Punctuation to be output |
|
"text" |
Text to be output |
|
|
Digit |
|
|
Leading or trailing zero |
|
|
Decimal point |
|
, |
Comma |
|
|
Scientific notation |
|
|
Sign mode |
|
|
Blank mode If there are no digits, the string is filled with blanks. |
|
|
No-blank mode (fill mode) If this element is used, trailing and leading spaces are suppressed. |
|
|
Leading dollar sign |