-
Notifications
You must be signed in to change notification settings - Fork 0
/
date.h
31 lines (20 loc) · 785 Bytes
/
date.h
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
26
27
28
29
30
/*===========================================================================
date.h
Various date-handling functions
In general, sunday = 0. Day of month is 1-31, month is 1-12, year
is four digits.
Copyright (c)2021 Kevin Boone, GPL v3.0
===========================================================================*/
#ifndef __DATE_H
#define __DATE_H
/* Get the number of days in the month and year. */
/*int dt_mdays (mon_num, year) */
extern int dt_mdays ();
/* Get the day of week, starting at sunday = 0.. */
/* int dt_dow (day, month, year) */
extern int dt_dow ();
/* Get the full name of the day of week, with 0 = sunday */
char *dt_dname (dow);
/* Get the full name of the month of the year, with 1 = January */
char *dt_mname (mow);
#endif /* date.h */