tm(3avr)
π¦ NAME π¦
tm β it's the struct, bestie π
(quick vibe check: this is page tm(3avr) from the AVR-LibC manuals, and it's here to tell u everything about the tm structure. no gatekeeping, we're spilling it all π«Ά)
π SYNOPSIS π
#include <time.h>
π Data Fields π
int8_t tm_secint8_t tm_minint8_t tm_hourint8_t tm_mdayint8_t tm_wdayint8_t tm_monint16_t tm_yearint16_t tm_ydayint16_t tm_isdst
β¨ Detailed Description β¨
okay so the tm structure is literally just a vibe: it holds a representation of time that's been 'broken down' into the components of the Gregorian calendar. like somebody took a whole clock and did a little βοΈ and now every piece is its own lil field. iconic behavior tbh π
The value of tm_isdst is zero if Daylight Saving Time is not in effect, and it's negative if the information is not available. π (not available?? we love a mystery)
When Daylight Saving Time is in effect, that value represents the number of seconds the clock is advanced. yes fr, it's a count of seconds, not just a lil yes/no flag.
if u want the full tea on Daylight Saving, go peek at the set_dst() function β it's the source of truth for all that βοΈ
π Field Documentation π
int8_t tm::tm_hour π
hours since midnight β [ 0 to 23 ]
int16_t tm::tm_isdst π
Daylight Saving Time flag
int8_t tm::tm_mday π
day of the month β [ 1 to 31 ]
int8_t tm::tm_min β±οΈ
minutes after the hour β [ 0 to 59 ]
int8_t tm::tm_mon ποΈ
months since January β [ 0 to 11 ]
int8_t tm::tm_sec β¨
seconds after the minute β [ 0 to 59 ]
int8_t tm::tm_wday π
days since Sunday β [ 0 to 6 ]
int16_t tm::tm_yday π
days since January 1 β [ 0 to 365 ]
int16_t tm::tm_year π
years since 1900
π Author π
Generated automatically by Doxygen for AVR-LibC from the source code. (not a human girlboss, just a robot doing its best π«Ά)
and that's the whole page, bestie!! this one came straight from AVR-LibC, Version 2.2.1, on the tm(3avr) manual page. mwah, go forth and break down some time πβ¨π¦
π¦ where this page comes from
- ubuntu resolute: avr-libc 1:2.2.1-1build1 Β· BSD-3-Clause
- ubuntu stonking: avr-libc 1:2.2.1-1build1 Β· BSD-3-Clause
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms