diff options
| author | Tom Lane <tgl@sss.pgh.pa.us> | 2003-04-04 04:50:44 +0000 |
|---|---|---|
| committer | Tom Lane <tgl@sss.pgh.pa.us> | 2003-04-04 04:50:44 +0000 |
| commit | d685417fbb8692d5ddee8ce60fc80e6b228c81bf (patch) | |
| tree | 2946cb557c8c40cc312a455355f35188a1460ad5 /src/include/utils/nabstime.h | |
| parent | 3b4ca4c0d9dd5807013a8404fc8283219f21f93b (diff) | |
| download | postgresql-d685417fbb8692d5ddee8ce60fc80e6b228c81bf.tar.gz | |
Avoid repeated computation of the constants date2j(1970, 1, 1) and
date2j(2000, 1, 1). Should make for some marginal speed improvement
in date/time operations.
Diffstat (limited to 'src/include/utils/nabstime.h')
| -rw-r--r-- | src/include/utils/nabstime.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/include/utils/nabstime.h b/src/include/utils/nabstime.h index d939136643..0992e1abee 100644 --- a/src/include/utils/nabstime.h +++ b/src/include/utils/nabstime.h @@ -7,7 +7,7 @@ * Portions Copyright (c) 1996-2002, PostgreSQL Global Development Group * Portions Copyright (c) 1994, Regents of the University of California * - * $Id: nabstime.h,v 1.37 2002/09/01 00:58:07 tgl Exp $ + * $Id: nabstime.h,v 1.38 2003/04/04 04:50:44 tgl Exp $ * *------------------------------------------------------------------------- */ @@ -157,6 +157,7 @@ extern Datum timeofday(PG_FUNCTION_ARGS); /* non-fmgr-callable support routines */ extern AbsoluteTime GetCurrentAbsoluteTime(void); extern AbsoluteTime GetCurrentAbsoluteTimeUsec(int *usec); +extern TimestampTz AbsoluteTimeUsecToTimestampTz(AbsoluteTime sec, int usec); extern void abstime2tm(AbsoluteTime time, int *tzp, struct tm * tm, char **tzn); #endif /* NABSTIME_H */ |
