diff options
| author | El-BG-1970 <elouan.gros.fr@gmail.com> | 2022-03-16 20:10:21 +0100 |
|---|---|---|
| committer | El-BG-1970 <elouan.gros.fr@gmail.com> | 2022-03-16 20:10:21 +0100 |
| commit | a37ece490f4cf269a58afdadf6e51f62d8529a41 (patch) | |
| tree | d55b3355c3fe32a0805ee384ceeb6e8865d1f52e | |
| parent | 3b0ea80811a1c939e0b1b97e0f8e34dabd54717f (diff) | |
| download | org-to-conky-a37ece490f4cf269a58afdadf6e51f62d8529a41.tar.gz | |
added weekdays
| -rw-r--r-- | date.c | 1 | ||||
| -rw-r--r-- | date.h | 2 |
2 files changed, 3 insertions, 0 deletions
@@ -2,6 +2,7 @@ #define _BSD_SOURCE enum month {JAN=1, FEB, MAR, APR, MAY, JUN, JUL, AUG, SEP, OCT, NOV, DEC} month; +enum weekday {SUN=0, MON, TUE, WED, THU, FRI, SAT} weekday; Date extract_date(char *str) { Date ret; @@ -3,11 +3,13 @@ #include <stdlib.h> #include <stdio.h> #include <string.h> +#include <time.h> typedef struct Date { int day; int month; int year; + int weekday; } Date; Date extract_date(char *str); |
