Path: blob/main/contrib/llvm-project/libcxx/include/__chrono/calendar.h
35262 views
// -*- C++ -*-1//===----------------------------------------------------------------------===//2//3// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.4// See https://llvm.org/LICENSE.txt for license information.5// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception6//7//===----------------------------------------------------------------------===//89#ifndef _LIBCPP___CHRONO_CALENDAR_H10#define _LIBCPP___CHRONO_CALENDAR_H1112#include <__chrono/duration.h>13#include <__chrono/time_point.h>14#include <__config>1516#if !defined(_LIBCPP_HAS_NO_PRAGMA_SYSTEM_HEADER)17# pragma GCC system_header18#endif1920#if _LIBCPP_STD_VER >= 202122_LIBCPP_BEGIN_NAMESPACE_STD2324namespace chrono {2526struct local_t {};27template <class _Duration>28using local_time = time_point<local_t, _Duration>;29using local_seconds = local_time<seconds>;30using local_days = local_time<days>;3132struct last_spec {33explicit last_spec() = default;34};35inline constexpr last_spec last{};3637} // namespace chrono3839_LIBCPP_END_NAMESPACE_STD4041#endif // _LIBCPP_STD_VER >= 204243#endif // _LIBCPP___CHRONO_CALENDAR_H444546