coreutils/lib/posixtm.h

25 lines
483 B
C
Raw Normal View History

1998-09-07 10:18:43 +08:00
#ifndef POSIXTM_H_
# define POSIXTM_H_
1998-09-07 10:17:55 +08:00
/* POSIX Date Syntax flags. */
1998-09-07 10:18:43 +08:00
# define PDS_LEADING_YEAR 1
# define PDS_TRAILING_YEAR 2
# define PDS_CENTURY 4
# define PDS_SECONDS 8
1998-09-07 10:17:55 +08:00
# ifndef PARAMS
# if defined PROTOTYPES || (defined __STDC__ && __STDC__)
# define PARAMS(Args) Args
# else
# define PARAMS(Args) ()
# endif
# endif
1998-09-07 10:17:55 +08:00
time_t
posixtime PARAMS ((const char *s, unsigned int syntax_bits));
1998-09-07 10:17:55 +08:00
struct tm *
posixtm PARAMS ((const char *s, unsigned int syntax_bits));
1998-09-07 10:18:43 +08:00
#endif