Timestamp Format Codes

This appendix lists valid components that may be specified for Coral8
Engine TIMESTAMPs.


  • For all valid input columns, one and only one occurrence
    of a code of the same kind (for example a code for the year) is allowed.
    There can be no ambiguity about any component of the timestamp.

  • All designations of year, month, day, hour, minute,
    or second, also read a fewer number of digits than is specified by the
    code. For example, DD reads both two-digit and one-digit day entries.



























































































































































Column CodeDescriptionAllowed in InputAllowed in Output
MMMonth (01-12; JAN = 01)YY
YYYY4 digit year.YY
YYYLast 3 digits of year.YY
YYLast 2 digits of year.YY
YLast digit of year.YY
QQuarter of year (1, 2, 3, 4; JAN-MAR = 1).NY
MONAbbreviated name of month (JAN, FEB, ...)YY
MONTHName of month, padded with blanks to length of 9 characters JANUARY,
FEBRUARY, ...)
YY
RMRoman numeral month (I-XII; JAN = I).YY
WWWeek of year (1-53) where week 1 starts on the first day of the year
and continues to the seventh day of the year.
NY
WWeek of month (1-5) where week 1 starts on the first day of the month
and ends on the seventh.
NY
DDay of week (1-7; SUNDAY=1).NY
DDDay of month (1-31).YY
DDDDay of year (1-366).NY
DAYName of day (SUNDAY, MONDAY, ...).YY
DYAbbreviated name of day (SUN, MON, ...).YY
HHHour of day (1-12).YY
HH12Hour of day (1-12).YY
HH24Hour of day (0-23).YY
AMMeridian indicator (AM/PM)YY
PMMeridian indicator (AM/PM)YY
MIMinute (0-59).YY
SSSecond (0-59).YY
SSSSSSeconds past midnight (0-86399).YY
SESeconds since epoch (January 1, 1970 UTC). This format may only be
used by itself, with the FF format, and/or with the time zone codes TZD,
TZR, TZH and TZM.
YY
MICMicroseconds past start of epoch, Jan 1, 1970YY
FFFraction seconds (0-999999). When used in output, FF produces six digits
for microseconds. FFFF produces twelve digits, repeating the six digits
for microseconds twice. When used in input, FF collects all digits until
a non-digit is detected in order to take nano-seconds into account, while
using only the microseconds.
YY
MS

Milliseconds since January 1, 1970. When used for input, this format
code may only be combined with FF (microseconds) and the timezone codes
TZD, TZR, TZH, TZM. All other format code combinations generate errors.
Furthermore, when MS is used with FF, the MS code must precede the FF
code: for example, MS.FF.

YY
FMFill mode toggle: suppress zeros and blanks or not (default: not).YY
FXExact mode toggle: match case, punctuations, etc. exactly (default:
not).
YY
RRLets you store 20th century dates in the 21st century using only two
digits
YN
RRRRRound year. Accepts either 4-digit or 2 digit input. If 2-digit, provides
the same return as RR.
YN
TZDAbbreviated timezone designator such as PST.YY
TZHTimezone hour displacement. For example, -5 indicates a timezone five
hours earlier than GMT.
NY
TZMTimezone minute displacement. For example, -5:30 indicates a timezone
that is 5 hours and thirty minutes earlier than GMT.
NY
TZRTimezone region name. For example, US/Pacific for PST.NY

本文转自

http://www.coral8.com/system/files/assets/docs/WebHelp/mergedProjects/CCL%2520Reference/c8ref_ap_timestamp_formats.html
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值