lunch-poll-legacy

Lunch Poll Legacy -- poll colleagues where to have lunch
Log | Files | Refs | README | LICENSE

date-utils.h (409B)


      1 /**
      2  * Lunch Poll Legacy
      3  * Copyright 2024, 2025 Matthias Balk
      4  */
      5 
      6 #ifndef __DATE_UTILS_H__
      7 #define __DATE_UTILS_H__
      8 
      9 #include <sys/types.h>
     10 
     11 #define DOW_MON (0x1 << 0)
     12 #define DOW_TUE (0x1 << 1)
     13 #define DOW_WED (0x1 << 2)
     14 #define DOW_THU (0x1 << 3)
     15 #define DOW_FRI (0x1 << 4)
     16 #define DOW_SAT (0x1 << 5)
     17 #define DOW_SUN (0x1 << 6)
     18 
     19 u_int8_t get_day_of_week(const char* date);
     20 
     21 #endif  /* __DATE_UTILS_H__ */