INTERNATIONAL STANDARD ISO 8601 Data elements and interchange formats Information interchange — Rep

Data elements and interchange formats — Information interchange — Representation of dates and times


formats — Information interchange —
Representation of dates and times)

INTERNATIONAL STANDARD ISO 8601

Data elements and interchange
formats — Information interchange —
Representation of dates and times

Third edition
2004-12-01

4.1.4 Week date

4.1.4 Week date
4.1.4.1 General
In expressions of week dates
 calendar year is represented as in 4.1.2.
 calendar week is represented by two decimal digits. The first calendar week of a year shall be identified
as [01] and subsequent weeks shall be numbered in ascending sequence.
 calendar day of the week is represented by one decimal digit. Monday shall be identified as calendar
day [1] of any calendar week, and subsequent calendar days of the same calendar week shall be
numbered in ascending sequence to Sunday (calendar day [7]).
4.1.4.2 Complete representations
When the application identifies the need for a complete representation of a week date, it shall be one of the
alphanumeric expressions as follows, where [YYYY] represents a calendar year, [W] is the week designator,
[ww] represents the ordinal number of a calendar week within the year, and [D] represents the ordinal number
of a calendar day within the calendar week.
Basic format: YYYYWwwD Example: 1985W155
Extended format: YYYY-Www-D Example: 1985-W15-5
4.1.4.3 Representations with reduced accuracy
If the degree of accuracy required permits, one digit may be omitted from the representation in 4.1.4.2.
A specific week
Basic format: YYYYWww Example: 1985W15
Extended format: YYYY-Www Example: 1985-W15
4.1.4.4 Expanded representations
If, by agreement, expanded representations are used the formats shall be as specified below. The interchange
parties shall agree the additional number of digits in the time element year. In the examples below it has been
agreed to expand the time element year with two digits.
a) A specific day
Basic format: ±YYYYYWwwD Example: +001985W155
Extended format: ±YYYYY-Www-D Example: +001985-W15-5
b) A specific week
Basic format: ±YYYYYWww Example: +001985W15
Extended format: ±YYYYY-Www Example: +001985-W15
NOTE 4.1.4.4 includes the definition of representations that are expanded and have reduced accuracy.

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值