Warning: This file is not a C or C++ file. It does not have highlighting.

1//===-- Definition of struct tm -------------------------------------------===//
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-exception
6//
7//===----------------------------------------------------------------------===//
8
9#ifndef LLVM_LIBC_TYPES_STRUCT_TM_H
10#define LLVM_LIBC_TYPES_STRUCT_TM_H
11
12struct tm {
13 int tm_sec; // seconds after the minute
14 int tm_min; // minutes after the hour
15 int tm_hour; // hours since midnight
16 int tm_mday; // day of the month
17 int tm_mon; // months since January
18 int tm_year; // years since 1900
19 int tm_wday; // days since Sunday
20 int tm_yday; // days since January
21 int tm_isdst; // Daylight Saving Time flag
22 // TODO: add tm_gmtoff and tm_zone? (posix extensions)
23};
24
25#endif // LLVM_LIBC_TYPES_STRUCT_TM_H
26

Warning: This file is not a C or C++ file. It does not have highlighting.

source code of libc/include/llvm-libc-types/struct_tm.h