|
1 |
| -/* $PostgreSQL: pgsql/src/interfaces/ecpg/pgtypeslib/dt.h,v 1.37 2007/08/14 10:01:53 meskes Exp $ */ |
| 1 | +/* $PostgreSQL: pgsql/src/interfaces/ecpg/pgtypeslib/dt.h,v 1.38 2007/08/22 08:20:58 meskes Exp $ */ |
2 | 2 |
|
3 | 3 | #ifndef DT_H
|
4 | 4 | #define DT_H
|
@@ -310,31 +310,24 @@ do { \
|
310 | 310 | #define TIMESTAMP_IS_NOEND(j) ((j) == DT_NOEND)
|
311 | 311 | #define TIMESTAMP_NOT_FINITE(j) (TIMESTAMP_IS_NOBEGIN(j) || TIMESTAMP_IS_NOEND(j))
|
312 | 312 |
|
313 |
| -int DecodeTimeOnly(char **field, int *ftype, |
314 |
| - int nf, int *dtype, |
315 |
| - struct tm * tm, fsec_t *fsec, int *tzp); |
316 |
| - |
317 |
| -int DecodeInterval(char **field, int *ftype, |
318 |
| - int nf, int *dtype, |
319 |
| - struct tm * tm, fsec_t *fsec); |
320 |
| - |
321 |
| -int EncodeTimeOnly(struct tm * tm, fsec_t fsec, int *tzp, int style, char *str); |
322 |
| -int EncodeDateTime(struct tm * tm, fsec_t fsec, int *tzp, char **tzn, int style, char *str, bool); |
323 |
| -int EncodeInterval(struct tm * tm, fsec_t fsec, int style, char *str); |
324 |
| - |
325 |
| -int tm2timestamp(struct tm *, fsec_t, int *, timestamp *); |
326 |
| - |
327 |
| -int DecodeUnits(int field, char *lowtoken, int *val); |
328 |
| - |
329 |
| -bool CheckDateTokenTables(void); |
330 |
| - |
331 |
| -int EncodeDateOnly(struct tm *, int, char *, bool); |
332 |
| -void GetEpochTime(struct tm *); |
333 |
| -int ParseDateTime(char *, char *, char **, int *, int, int *, char **); |
334 |
| -int DecodeDateTime(char **, int *, int, int *, struct tm *, fsec_t *, bool); |
335 |
| -void j2date(int, int *, int *, int *); |
336 |
| -void GetCurrentDateTime(struct tm *); |
337 |
| -int date2j(int, int, int); |
| 313 | +int DecodeTimeOnly(char **, int *, int, int *, struct tm *, fsec_t *, int *); |
| 314 | +int DecodeInterval(char **, int *, int, int *, struct tm *, fsec_t *); |
| 315 | +int DecodeTime(char *, int, int *, struct tm *, fsec_t *); |
| 316 | +int EncodeTimeOnly(struct tm *, fsec_t, int *, int, char *); |
| 317 | +int EncodeDateTime(struct tm *, fsec_t, int *, char **, int, char *, bool); |
| 318 | +int EncodeInterval(struct tm *, fsec_t, int, char *); |
| 319 | +int tm2timestamp(struct tm *, fsec_t, int *, timestamp *); |
| 320 | +int DecodeUnits(int field, char *lowtoken, int *val); |
| 321 | +bool CheckDateTokenTables(void); |
| 322 | +int EncodeDateOnly(struct tm *, int, char *, bool); |
| 323 | +void GetEpochTime(struct tm *); |
| 324 | +int ParseDateTime(char *, char *, char **, int *, int, int *, char **); |
| 325 | +int DecodeDateTime(char **, int *, int, int *, struct tm *, fsec_t *, bool); |
| 326 | +void j2date(int, int *, int *, int *); |
| 327 | +void GetCurrentDateTime(struct tm *); |
| 328 | +int date2j(int, int, int); |
| 329 | +void TrimTrailingZeros(char *); |
| 330 | +void dt2time(double, int *, int *, int *, fsec_t *); |
338 | 331 |
|
339 | 332 | extern char *pgtypes_date_weekdays_short[];
|
340 | 333 | extern char *pgtypes_date_months[];
|
|
0 commit comments