week_date(3avr)
π week_date π
okay bestie, so this is week_date β a lil struct from the AVR-LibC crew (that's the AVR C library, section 3avr of the manual, iykyk). it's giving calendar-girl energy and it's lowkey so iconic. let's go π¦
β¨ NAME β¨
week_date β the cutest way to say "I know what week it is" π
πΈ SYNOPSIS πΈ
#include <time.h>
π«Ά Data Fields
int yearint weekint day
π« Detailed Description π«
So the vibe is: this is a structure that represents a date as a year, a week number of that year, and a day of week. that's it, that's the whole main character. no cap.
If you want the full lore, the manpage says to see http://en.wikipedia.org/wiki/ISO_week_date for more information. literally go read it, bestie, it's the ISO week date situation π β¨
π Field Documentation π
int week_date::day π
day within week. yes girl, just the day β within the week. slay.
int week_date::week π₯
week number (#1 is where first Thursday is in). so week one is defined by where that first Thursday lands. that's the rule, periodt.
int week_date::year π
year number (Gregorian calendar). Gregorian specifically, bestie β don't come at me with other calendars.
π Author π
Generated automatically by Doxygen for AVR-LibC from the source code. so nobody hand-wrote this one, it's a robot's finest work π€β¨
fr fr that's the whole page. tiny struct, huge main character energy. go forth and compute your week number π¦
and that's a wrap, babe π this whole thing came to you courtesy of AVR-LibC Version 2.2.1, and the week_date(3avr) page is officially closed. mwah, go compile something cute πβ
π¦ 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