E.1.15 语言环境特定的行为 (G.4)
E.1.15.1 (7.12.1) The local time zone and Daylight Savings Time(本地时区和夏令时):
本地时区由环境变量 TZ 设置。
E.1.15.2 (7.12.2.1) The era for the clock function(clock 函数的年代)
时钟的年代以时钟周期(以程序的起始执行时间为起点)表示。
宿主环境的下列特性特定于语言环境:
E.1.15.3 (5.2.1) The content of the execution character set, in addition to the required members(执行字符集的内容,以及必需的成员):
特定于语言环境(C 语言环境中无扩展)。
E.1.15.4 (5.2.2) The direction of printing(输出方向):
输出总是从左到右进行。
E.1.15.5 (7.1.1) The decimal-point character(小数点字符):
特定于语言环境(在 C 语言环境中为 ".")。
E.1.15.6 (7.3) The implementation-defined aspects of character testing and case mapping functions(字符测试和条件映射函数的实现定义方面):
与 4.3.1 相同。
E.1.15.7 (7.11.4.4) The collation sequence of the execution character set(执行字符集的整理序列):
特定于语言环境(C 语言环境中的 ASCII 整理)。
E.1.15.8 (7.12.3.5) The formats for time and date(时间和日期的格式):
特定于语言环境。下面几个表显示 C 语言环境中的格式。月份名称为:
表 E–9 月份名称
1 月
|
5 月
|
9 月
|
2 月
|
6 月
|
10 月
|
3 月
|
7 月
|
11 月
|
4 月
|
8 月
|
12 月
|
周日期的名称为:
表 E–10 周日期及缩写
日期
|
|
缩写
|
|
星期日
|
星期四
|
日
|
四
|
星期一
|
星期五
|
一
|
五
|
星期二
|
星期六
|
二
|
六
|
星期三
|
|
三
|
|
时间的格式为:
%H:%M:%S
日期的格式为:
%m/%d/%y
上午和下午的格式为:AM PM