PostgreSQL Source Code: src/include/pgtime.h Source File (original) (raw)

1

2

3

4

5

6

7

8

9

10

11

12

13#ifndef _PGTIME_H

14#define _PGTIME_H

15

16

17

18

19

20

21

22

24

25

26

27

28

29

30

31

32

33

35{

47};

48

49

52

53

54#define TZ_STRLEN_MAX 255

55

56

57

61 long int *before_gmtoff,

62 int *before_isdst,

64 long int *after_gmtoff,

65 int *after_isdst,

69 long int *gmtoff,

70 int *isdst,

73 bool *isfixed,

74 long int *gmtoff,

75 int *isdst,

82

83

84

85extern size_t pg_strftime(char *s, size_t maxsize, const char *format,

86 const struct pg_tm *t);

87

88

89

92

96

100

101#endif

pg_tz * pg_tzset_offset(long gmtoffset)

pg_tz * pg_tzenumerate_next(pg_tzenum *dir)

bool pg_tz_acceptable(pg_tz *tz)

bool pg_timezone_abbrev_is_known(const char *abbrev, bool *isfixed, long int *gmtoff, int *isdst, const pg_tz *tz)

int pg_next_dst_boundary(const pg_time_t *timep, long int *before_gmtoff, int *before_isdst, pg_time_t *boundary, long int *after_gmtoff, int *after_isdst, const pg_tz *tz)

const char * pg_get_timezone_name(pg_tz *tz)

void pg_timezone_initialize(void)

pg_tz * pg_tzset(const char *tzname)

bool pg_get_timezone_offset(const pg_tz *tz, long int *gmtoff)

const char * pg_get_next_timezone_abbrev(int *indx, const pg_tz *tz)

PGDLLIMPORT pg_tz * session_timezone

void pg_tzenumerate_end(pg_tzenum *dir)

size_t pg_strftime(char *s, size_t maxsize, const char *format, const struct pg_tm *t)

struct pg_tm * pg_localtime(const pg_time_t *timep, const pg_tz *tz)

PGDLLIMPORT pg_tz * log_timezone

pg_tzenum * pg_tzenumerate_start(void)

struct pg_tm * pg_gmtime(const pg_time_t *timep)

bool pg_interpret_timezone_abbrev(const char *abbrev, const pg_time_t *timep, long int *gmtoff, int *isdst, const pg_tz *tz)