File: utilDate.h

package info (click to toggle)
ted 2.11-1
  • links: PTS
  • area: main
  • in suites: woody
  • size: 11,064 kB
  • ctags: 13,935
  • sloc: ansic: 120,446; makefile: 7,469; sh: 253
file content (20 lines) | stat: -rw-r--r-- 666 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
/************************************************************************/
/*									*/
/*  Date manipulation.							*/
/*									*/
/*  These routines are totally naive with respect to the difference	*/
/*  between Julian and Gregorian dates. Everything is Gregorian.	*/
/*									*/
/*  Dates are relative to Jan 1, 1970. Values very far in the past are	*/
/*  idiotic.								*/
/*									*/
/************************************************************************/

extern long utilDateGregorianDayNumber(	int	year,
					int	month,
					int	day );

extern void utilDateSplitGregorianDate(	long	value,
					int *	pYear,
					int *	pMonth,
					int *	pDay );