2 //===---------------------------- ctime -----------------------------------===//
4 // The LLVM Compiler Infrastructure
6 // This file is dual licensed under the MIT and the University of Illinois Open
7 // Source Licenses. See LICENSE.TXT for details.
9 //===----------------------------------------------------------------------===//
35 double difftime(time_t time1, time_t time0);
36 time_t mktime(tm* timeptr);
37 time_t time(time_t* timer);
38 char* asctime(const tm* timeptr);
39 char* ctime(const time_t* timer);
40 tm* gmtime(const time_t* timer);
41 tm* localtime(const time_t* timer);
42 size_t strftime(char* restrict s, size_t maxsize, const char* restrict format,
43 const tm* restrict timeptr);
44 int timespec_get( struct timespec *ts, int base); // C++17
52 #if !defined(_LIBCPP_HAS_NO_PRAGMA_SYSTEM_HEADER)
53 #pragma GCC system_header
56 _LIBCPP_BEGIN_NAMESPACE_STD
62 #if _LIBCPP_STD_VER > 14 && defined(_LIBCPP_HAS_C11_FEATURES)
69 #ifndef _LIBCPP_HAS_NO_THREAD_UNSAFE_C_FUNCTIONS
76 #if _LIBCPP_STD_VER > 14 && defined(_LIBCPP_HAS_TIMESPEC_GET)
80 _LIBCPP_END_NAMESPACE_STD
82 #endif // _LIBCPP_CTIME