52 lines · c
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-exception7//8//===----------------------------------------------------------------------===//9 10// For information see https://libcxx.llvm.org/DesignDocs/TimeZone.html11 12#ifndef _LIBCPP___CHRONO_SYS_INFO_H13#define _LIBCPP___CHRONO_SYS_INFO_H14 15#include <version>16// Enable the contents of the header only when libc++ was built with experimental features enabled.17#if _LIBCPP_HAS_EXPERIMENTAL_TZDB18 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_header27# endif28 29_LIBCPP_BEGIN_NAMESPACE_STD30 31# if _LIBCPP_STD_VER >= 2032 33namespace chrono {34 35struct sys_info {36 sys_seconds begin;37 sys_seconds end;38 seconds offset;39 minutes save;40 string abbrev;41};42 43} // namespace chrono44 45# endif // _LIBCPP_STD_VER >= 2046 47_LIBCPP_END_NAMESPACE_STD48 49#endif // _LIBCPP_HAS_EXPERIMENTAL_TZDB50 51#endif // _LIBCPP___CHRONO_SYS_INFO_H52