aboutsummaryrefslogtreecommitdiffstats
path: root/date.h
blob: 649b90fa2a7c642b48779e1926be98ef47831cbb (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
#ifndef __DATE_H__
#include <stdbool.h>
#include <stdlib.h>
#include <stdio.h>
#include <string.h>

typedef struct Date {
	int day;
	int month;
	int year;
} Date;

Date extract_date(char *str);
bool smaller(Date a, Date b);
bool eql(Date a, Date b);
bool zero(Date a);

void print_date(Date date);
char *print_date_to_string(Date date);

Date today();
Date nextweek(Date td);

#define __DATE_H__
#endif