week_date(3)
π week_date π
okay bestie, so this is the manual page for week_date from the avr-libc library (section 3, the library-calls girlies, iykyk). it's a little struct that holds a whole date, but make it ISO-coded. let's get into it β¨
π¦ SYNOPSIS π¦
Data Fields
int yearint weekint day
like. three whole ints. the way that's literally all it takes to describe a date. obsessed π
πΈ Detailed Description πΈ
so week_date is a structure that represents a date as a year, the week number of that year, and the day of week. that's it, that's the whole vibe β a triple of ints doing main character energy π
if you wanna know more (and honestly bestie, the ISO week date lore is fascinating), the manpage points you to http://en.wikipedia.org/wiki/ISO_week_date. go read it fr fr π
β¨ Field Documentation β¨
π int week_date::day
day within week ποΈ
π int week_date::week
week number (#1 is where first Thursday is in) π
ok lowkey this one is the tricky one. week #1 is not January 1st, bestie. it's the week where the first Thursday lives. that's the ISO rule, no cap.
π int week_date::year
year number (Gregorian calendar) π
π Author π
Generated automatically by Doxygen for avr-libc from the source code.
so like, a robot wrote this one, not a human. respect tho, Doxygen ate that πβ¨
okay that's the whole page bestie, you're basically an ISO week date expert now π«Ά this was Version 2.1.0, dated Sat Jan 29 2022 β and it's an avr-libc situation, so go forth and slay those weeks ππΈπ¦ππ
π¦ where this page comes from
- fedora 43: avr-libc 2.2.1-3.fc43 Β· BSD-3-Clause
- fedora 44: avr-libc 2.2.1-5.fc44 Β· BSD-3-Clause
- opensuse-leap 16.0: avr-libc 2.1.0-bp160.1.33 Β· BSD-3-Clause
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms