1 | // -*- C++ -*- |
---|---|
2 | //===----------------------------------------------------------------------===// |
3 | // |
4 | // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. |
5 | // See https://llvm.org/LICENSE.txt for license information. |
6 | // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception |
7 | // |
8 | //===----------------------------------------------------------------------===// |
9 | |
10 | // For information see https://libcxx.llvm.org/DesignDocs/TimeZone.html |
11 | |
12 | #ifndef _LIBCPP___CHRONO_SYS_INFO_H |
13 | #define _LIBCPP___CHRONO_SYS_INFO_H |
14 | |
15 | #include <version> |
16 | // Enable the contents of the header only when libc++ was built with experimental features enabled. |
17 | #if !defined(_LIBCPP_HAS_NO_EXPERIMENTAL_TZDB) |
18 | |
19 | # include <__chrono/duration.h> |
20 | # include <__chrono/system_clock.h> |
21 | # include <__chrono/time_point.h> |
22 | # include <__config> |
23 | # include <string> |
24 | |
25 | # if !defined(_LIBCPP_HAS_NO_PRAGMA_SYSTEM_HEADER) |
26 | # pragma GCC system_header |
27 | # endif |
28 | |
29 | _LIBCPP_BEGIN_NAMESPACE_STD |
30 | |
31 | # if _LIBCPP_STD_VER >= 20 |
32 | |
33 | namespace chrono { |
34 | |
35 | struct sys_info { |
36 | sys_seconds begin; |
37 | sys_seconds end; |
38 | seconds offset; |
39 | minutes save; |
40 | string abbrev; |
41 | }; |
42 | |
43 | } // namespace chrono |
44 | |
45 | # endif // _LIBCPP_STD_VER >= 20 |
46 | |
47 | _LIBCPP_END_NAMESPACE_STD |
48 | |
49 | #endif // !defined(_LIBCPP_HAS_NO_EXPERIMENTAL_TZDB) |
50 | |
51 | #endif // _LIBCPP___CHRONO_SYS_INFO_H |
52 |