mirror of
				https://github.com/postgres/postgres.git
				synced 2025-10-31 10:30:33 +03:00 
			
		
		
		
	I have updated my contrib code for version 6.5. In the attachment you will find the directories array, datetime, miscutil, string, tools and userlocks which replace the corresponding directories under contrib. In contrib/tools you will find some developement scripts which I use while hacking the sources. I hope they will be useful for some other people. I have also added a contrib/Makefile which tries to compile and install all the contribs. Unfortunately many of them don't have a Makefile or don't compile cleanly. -- Massimo Dal Zotto
		
			
				
	
	
		
			28 lines
		
	
	
		
			642 B
		
	
	
	
		
			C
		
	
	
	
	
	
			
		
		
	
	
			28 lines
		
	
	
		
			642 B
		
	
	
	
		
			C
		
	
	
	
	
	
| #ifndef DATETIME_FUNCTIONS_H
 | |
| #define DATETIME_FUNCTIONS_H
 | |
| 
 | |
| TimeADT    *hhmm_in(char *str);
 | |
| char	   *hhmm_out(TimeADT *time);
 | |
| TimeADT    *hhmm(TimeADT *time);
 | |
| TimeADT    *time_difference(TimeADT *time1, TimeADT *time2);
 | |
| int4		time_hours(TimeADT *time);
 | |
| int4		time_minutes(TimeADT *time);
 | |
| int4		time_seconds(TimeADT *time);
 | |
| int4		as_minutes(TimeADT *time);
 | |
| int4		as_seconds(TimeADT *time);
 | |
| int4		date_day(DateADT val);
 | |
| int4		date_month(DateADT val);
 | |
| int4		date_year(DateADT val);
 | |
| TimeADT    *currenttime(void);
 | |
| DateADT		currentdate(void);
 | |
| 
 | |
| #endif
 | |
| 
 | |
| /*
 | |
|  * Local Variables:
 | |
|  *  tab-width: 4
 | |
|  *  c-indent-level: 4
 | |
|  *  c-basic-offset: 4
 | |
|  * End:
 | |
|  */
 |