std::chrono::time_zone:: get_info
From cppreference.net
C++
Date and time library
|
|
|
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
std::chrono::time_zone
| Member functions | ||||
|
time_zone::get_info
|
||||
| Nonmember functions | ||||
|
template
<
class
Duration
>
std:: chrono :: sys_info get_info ( const std:: chrono :: sys_time < Duration > & tp ) const ; |
(C++20 起) | |
|
template
<
class
Duration
>
std:: chrono :: local_info get_info ( const std:: chrono :: local_time < Duration > & tp ) const ; |
(C++20 起) | |
获取此时区在时间点 tp 的相关信息。
返回值
1)
一个
std::chrono::sys_info
结构体
i
,包含在该时区的时间点
tp
生效的时区信息。
tp
将位于区间
[
i.
begin
,
i.
end
)
内。
2)
一个
std::chrono::local_info
结构体,包含此时区内本地时间
tp
的相关信息。