summaryrefslogtreecommitdiff
path: root/lib/posixtm.h
blob: d2c01c9b6b440282643e6c8e36c2e3a6aa961a76 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
#ifndef POSIXTM_H_
# define POSIXTM_H_

/* POSIX Date Syntax flags.  */
# define PDS_LEADING_YEAR 1
# define PDS_TRAILING_YEAR 2
# define PDS_CENTURY 4
# define PDS_SECONDS 8

# ifndef PARAMS
#  if defined PROTOTYPES || (defined __STDC__ && __STDC__)
#   define PARAMS(Args) Args
#  else
#   define PARAMS(Args) ()
#  endif
# endif

time_t
posixtime PARAMS ((const char *s, unsigned int syntax_bits));

struct tm *
posixtm PARAMS ((const char *s, unsigned int syntax_bits));

#endif