CHERIoT RTOS
A compartmentalised RTOS for CHERIoT hardware
Loading...
Searching...
No Matches
tm Struct Reference

Structure representing a date in the Gregorian calendar. More...

#include <time.h>

Public Attributes

int tm_sec
 Seconds, in the range 0–60 (to account for leap seconds).
int tm_min
 Minutes, in the range 0–59.
int tm_hour
 Hours, in the range 0–23.
int tm_mday
 Day of the month, in the range 1–31, or less if the month has fewer than 31 days.
int tm_mon
 Month of the year, in the range 0–11.
int tm_year
 Year, as an offset from 1900 (so, for example, 2023 is 123).
int tm_wday
 Day of the week, in the range 0–6.
int tm_yday
 Day of the year, in the range 0–365 (0–364 if this is not a leap year).
int tm_isdst
 Daylight savings flag.

Detailed Description

Structure representing a date in the Gregorian calendar.

This is intended to be compatible with C/POSIX, not all fields are used by all APIs.

Definition at line 140 of file time.h.

Member Data Documentation

◆ tm_hour

int tm::tm_hour

Hours, in the range 0–23.

Definition at line 147 of file time.h.

◆ tm_isdst

int tm::tm_isdst

Daylight savings flag.

Definition at line 171 of file time.h.

◆ tm_mday

int tm::tm_mday

Day of the month, in the range 1–31, or less if the month has fewer than 31 days.

Definition at line 152 of file time.h.

◆ tm_min

int tm::tm_min

Minutes, in the range 0–59.

Definition at line 145 of file time.h.

◆ tm_mon

int tm::tm_mon

Month of the year, in the range 0–11.

Note that this counts from 0, whereas days of the month count from 1.

Definition at line 157 of file time.h.

◆ tm_sec

int tm::tm_sec

Seconds, in the range 0–60 (to account for leap seconds).

Definition at line 143 of file time.h.

◆ tm_wday

int tm::tm_wday

Day of the week, in the range 0–6.

Sunday is 0, Saturday is 6.

Definition at line 163 of file time.h.

◆ tm_yday

int tm::tm_yday

Day of the year, in the range 0–365 (0–364 if this is not a leap year).

Definition at line 167 of file time.h.

◆ tm_year

int tm::tm_year

Year, as an offset from 1900 (so, for example, 2023 is 123).

Definition at line 159 of file time.h.


The documentation for this struct was generated from the following file: