Back to home page

EIC code displayed by LXR

 
 

    


File indexing completed on 2026-05-03 08:13:15

0001 // -*- C++ -*-
0002 //===----------------------------------------------------------------------===//
0003 //
0004 // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
0005 // See https://llvm.org/LICENSE.txt for license information.
0006 // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
0007 //
0008 //===----------------------------------------------------------------------===//
0009 
0010 // For information see https://libcxx.llvm.org/DesignDocs/TimeZone.html
0011 
0012 #ifndef _LIBCPP___CHRONO_SYS_INFO_H
0013 #define _LIBCPP___CHRONO_SYS_INFO_H
0014 
0015 #include <version>
0016 // Enable the contents of the header only when libc++ was built with experimental features enabled.
0017 #if _LIBCPP_HAS_EXPERIMENTAL_TZDB
0018 
0019 #  include <__chrono/duration.h>
0020 #  include <__chrono/system_clock.h>
0021 #  include <__chrono/time_point.h>
0022 #  include <__config>
0023 #  include <string>
0024 
0025 #  if !defined(_LIBCPP_HAS_NO_PRAGMA_SYSTEM_HEADER)
0026 #    pragma GCC system_header
0027 #  endif
0028 
0029 _LIBCPP_BEGIN_NAMESPACE_STD
0030 
0031 #  if _LIBCPP_STD_VER >= 20
0032 
0033 namespace chrono {
0034 
0035 struct sys_info {
0036   sys_seconds begin;
0037   sys_seconds end;
0038   seconds offset;
0039   minutes save;
0040   string abbrev;
0041 };
0042 
0043 } // namespace chrono
0044 
0045 #  endif // _LIBCPP_STD_VER >= 20
0046 
0047 _LIBCPP_END_NAMESPACE_STD
0048 
0049 #endif // _LIBCPP_HAS_EXPERIMENTAL_TZDB
0050 
0051 #endif // _LIBCPP___CHRONO_SYS_INFO_H