20 lines
		
	
	
		
			461 B
		
	
	
	
		
			C
		
	
	
	
	
	
		
		
			
		
	
	
			20 lines
		
	
	
		
			461 B
		
	
	
	
		
			C
		
	
	
	
	
	
| 
								 | 
							
								#ifndef CALDATE_H
							 | 
						||
| 
								 | 
							
								#define CALDATE_H
							 | 
						||
| 
								 | 
							
								
							 | 
						||
| 
								 | 
							
								struct caldate {
							 | 
						||
| 
								 | 
							
								  long year;
							 | 
						||
| 
								 | 
							
								  int month;
							 | 
						||
| 
								 | 
							
								  int day;
							 | 
						||
| 
								 | 
							
								} ;
							 | 
						||
| 
								 | 
							
								
							 | 
						||
| 
								 | 
							
								extern unsigned int caldate_fmt(char *s, struct caldate *cd);
							 | 
						||
| 
								 | 
							
								extern unsigned int caldate_scan(char *s, struct caldate *cd);
							 | 
						||
| 
								 | 
							
								
							 | 
						||
| 
								 | 
							
								extern void caldate_frommjd(struct caldate *cd, int64_t day, int *pwday, int *pyday);
							 | 
						||
| 
								 | 
							
								extern long caldate_mjd(struct caldate *cd);
							 | 
						||
| 
								 | 
							
								extern void caldate_normalize(struct caldate *cd);
							 | 
						||
| 
								 | 
							
								
							 | 
						||
| 
								 | 
							
								extern void caldate_easter(struct caldate *cd);
							 | 
						||
| 
								 | 
							
								
							 | 
						||
| 
								 | 
							
								#endif
							 |