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 year
  • int week
  • int 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