tm(3)

πŸ’– tm(3) πŸ’–

okay bestie, gather round, because we're about to talk about tm β€” the little struct from avr-libc that takes time and breaks it down into cute little Gregorian-calendar pieces. it's giving ✨calendar girl✨ energy. no cap.


🌸 SYNOPSIS 🌸

✨ Data Fields ✨

here's the whole squad, all the fields, no one left behind:

int8_t tm_sec
int8_t tm_min
int8_t tm_hour
int8_t tm_mday
int8_t tm_wday
int8_t tm_mon
int16_t tm_year
int16_t tm_yday
int16_t tm_isdst

πŸ’œ Detailed Description πŸ’œ

The tm structure contains a representation of time 'broken down' into components of the Gregorian calendar. it's literally time, but chopped into snackable pieces. πŸ“

The value of tm_isdst is zero if Daylight Saving Time is not in effect, and is negative if the information is not available.

When Daylight Saving Time is in effect, the value represents the number of seconds the clock is advanced.

🫢 See the set_dst() function for more information about Daylight Saving. go read it, iykyk.

πŸŽ€ Field Documentation πŸŽ€

πŸ‘‘ int8_t tm::tm_hour

hours since midnight β€” [ 0 to 23 ]. midnight to almost-midnight, the whole rotation. ⭐

🌈 int16_t tm::tm_isdst

Daylight Saving Time flag. bestie, remember: zero = not in effect, negative = we don't know, and when it is in effect the value is the number of seconds the clock is advanced. πŸ’…

🌸 int8_t tm::tm_mday

day of the month β€” [ 1 to 31 ]. yes it starts at 1, not 0. not me getting that wrong the first time 😭

✨ int8_t tm::tm_min

minutes after the hour β€” [ 0 to 59 ].

πŸ¦‹ int8_t tm::tm_mon

months since January β€” [ 0 to 11 ]. january is 0, december is 11, that's just how it is, periodt.

πŸ’œ 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. iconic, lowkey ancient, but that's the convention and we respect it.


πŸ’– Author πŸ’–

Generated automatically by Doxygen for avr-libc from the source code. so technically a robot wrote this, and honestly? slay. πŸ€–βœ¨


okay that's the whole page, bestie, you ate it up. πŸ’… this was Version 2.1.0, dated Sat Jan 29 2022 β€” from the avr-libc crew, who said "tm(3)" and meant it. πŸŽ€ go forth and break down some time. πŸ’–

πŸ“¦ where this page comes from