C++ 参考手册
- C++11
- C++14
- C++17
- C++20
- C++ 编译器支持情况表
- 独立与宿主实现
- C++ 语言
- C++ 关键词
- 预处理器
- C++ 标准库头文件
- 具名要求
- 功能特性测试 (C++20)
- 工具库
- 类型支持(基本类型、RTTI、类型特性)
- 概念库 (C++20)
- 错误处理
- 动态内存管理
- 日期和时间工具
- std::chrono::clock_cast
- std::chrono::is_am, std::chrono::is_pm, std::chrono::make12, std::chrono::make24
- std::chrono::system_clock
- std::chrono::steady_clock
- std::chrono::high_resolution_clock
- std::chrono::clock_time_conversion
- std::chrono::duration
- std::chrono::time_point
- C 日期和时间工具
- std::chrono::is_clock
- std::chrono::utc_clock
- std::chrono::tai_clock
- std::chrono::gps_clock
- std::chrono::file_clock
- std::chrono::local_t
- std::chrono::day
- std::chrono::month
- std::chrono::year
- std::chrono::weekday
- std::chrono::operator/ (日历)
- std::chrono::year_month_day
- std::chrono::year_month_day_last
- std::chrono::year_month_weekday
- std::chrono::year_month_weekday_last
- std::chrono::weekday_indexed
- std::chrono::weekday_last
- std::chrono::month_day
- std::chrono::month_day_last
- std::chrono::month_weekday
- std::chrono::month_weekday_last
- std::chrono::year_month
- std::chrono::tzdb
- std::chrono::tzdb_list
- std::chrono::get_tzdb_list, std::chrono::get_tzdb, std::chrono::remote_version, std::chrono::reload_tzdb
- std::chrono::time_zone
- std::chrono::locate_zone
- std::chrono::current_zone
- std::chrono::zoned_time
- std::chrono::time_zone_link
- std::chrono::leap_second
- std::chrono::time_of_day
- std::chrono::last_spec
- std::chrono::treat_as_floating_point
- std::literals::chrono_literals::operator""ns
- std::literals::chrono_literals::operator""y
- std::literals::chrono_literals::operator""d
- std::literals::chrono_literals::operator""s
- std::literals::chrono_literals::operator""ms
- std::literals::chrono_literals::operator""us
- std::literals::chrono_literals::operator""h
- std::literals::chrono_literals::operator""min
- std::chrono::duration_values
- std::chrono::nonexistent_local_time
- std::chrono::ambiguous_local_time
- 注释
- 字符串库
- 容器库
- 迭代器库
- 范围库 (C++20)
- 算法库
- 数值库
- 输入/输出库
- 文件系统库
- 本地化库
- 正则表达式库
- 原子操作库
- 线程支持库
- 实验性 C++ 特性
- 有用的资源
- 索引
- std 符号索引
- 协程支持 (C++20)
- C++ 关键词
std::chrono::operator/ (日历)
const std::chrono::month& m) noexcept
-> std::chrono::year_month;
month_day
const std::chrono::day& d) noexcept
-> std::chrono::month_day;
-> std::chrono::month_day;
const std::chrono::month& m) noexcept
-> std::chrono::month_day;
month_day_last
std::chrono::last_spec) noexcept
-> std::chrono::month_day_last;
const std::chrono::month& m) noexcept
-> std::chrono::month_day_last;
month_weekday
const std::chrono::weekday_indexed& wdi) noexcept
-> std::chrono::month_weekday;
const std::chrono::month& m) noexcept
-> std::chrono::month_weekday;
month_weekday_last
const std::chrono::weekday_last& wdl) noexcept
-> std::chrono::month_weekday_last;
const std::chrono::month& m) noexcept
-> std::chrono::month_weekday_last;
year_month_day
const std::chrono::day& d) noexcept
-> std::chrono::year_month_day;
const std::chrono::month_day& md) noexcept
-> std::chrono::year_month_day;
const std::chrono::year& y) noexcept
-> std::chrono::year_month_day;
year_month_day_last
std::chrono::last_spec) noexcept
const std::chrono::month_day_last& mdl) noexcept
-> std::chrono::year_month_day_last;
const std::chrono::year& y) noexcept
-> std::chrono::year_month_day_last;
year_month_weekday
const std::chrono::weekday_indexed& wdi) noexcept
const std::chrono::month_weekday& mwd) noexcept
-> std::chrono::year_month_weekday;
const std::chrono::year& y) noexcept
-> std::chrono::year_month_weekday;
year_month_weekday_last
const std::chrono::weekday_last& wdl) noexcept
const std::chrono::month_weekday_last& mwdl) noexcept
-> std::chrono::year_month_weekday_last;
const std::chrono::year& y) noexcept
-> std::chrono::year_month_weekday_last;
这些 operator/
为创建格里高利历日期提供约定语法。
对于创建完整日期,任何下列三种顺序都可接受:
-
year/month/day
-
month/day/year
-
day/month/year
每种情况中,能以下列之一替换 day
:
- std::chrono::last ,对于月的最后一日;
-
weekday[i]
,对于月的第 i 个 weekday ; -
weekday[std::chrono::last]
,对于该月的最后一个 weekday 。
若单纯的整数的含义相对于其他运算数的类型无歧义,则可接受它:允许 2005y/4/5 ,但不允许 5/April/2005 。
能够不以三种顺序之一应用第二个 operator/
创建部分日期类型( year_month 、 month_day 等)。
返回值
示例
本节未完成 原因:暂无示例 |