std:: time_base
From cppreference.net
C++
Text processing library
| Localization library | |||||||||||||||||||||||||
| Regular expressions library (C++11) | |||||||||||||||||||||||||
| Formatting library (C++20) | |||||||||||||||||||||||||
| Null-terminated sequence utilities | |||||||||||||||||||||||||
| Byte strings | |||||||||||||||||||||||||
| Multibyte strings | |||||||||||||||||||||||||
| Wide strings | |||||||||||||||||||||||||
| Primitive numeric conversions | |||||||||||||||||||||||||
|
|||||||||||||||||||||||||
| Text encoding identifications | |||||||||||||||||||||||||
|
|||||||||||||||||||||||||
Localization library
|
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
定义于头文件
<locale>
|
||
|
class
time_base
;
|
||
类
std::time_base
提供日期顺序常量,这些常量由
std::time_get
方面所继承。
成员类型
| 成员类型 | 描述 |
| enum dateorder { no_order, dmy, mdy, ymd, ydm } ; | 非限定作用域枚举类型 |
| 枚举常量 | 描述 |
no_order
|
未指定顺序 |
dmy
|
日、月、年(欧洲)顺序 |
mdy
|
月、日、年(美国)顺序 |
ymd
|
年、月、日(亚洲)顺序 |
ydm
|
年、日、月 |
参见
|
[virtual]
|
获取日、月、年的首选排序方式
(
std::time_get<CharT,InputIt>
的虚保护成员函数)
|
|
[virtual]
|
从输入流提取月、日和年
(
std::time_get<CharT,InputIt>
的虚保护成员函数)
|