getdate.h 870 B

12345678910111213141516171819202122232425262728293031323334353637
  1. /*
  2. ** Originally written by Steven M. Bellovin <smb@research.att.com> while
  3. ** at the University of North Carolina at Chapel Hill. Later tweaked by
  4. ** a couple of people on Usenet. Completely overhauled by Rich $alz
  5. ** <rsalz@bbn.com> and Jim Berets <jberets@bbn.com> in August, 1990.
  6. **
  7. ** This code is in the public domain and has no copyright.
  8. */
  9. # include "setup.h"
  10. #ifndef PARAMS
  11. # if defined PROTOTYPES || (defined __STDC__ && __STDC__)
  12. # define PARAMS(Args) Args
  13. # else
  14. # define PARAMS(Args) ()
  15. # endif
  16. #endif
  17. #ifdef vms
  18. # include <types.h>
  19. # include <time.h>
  20. #else
  21. # include <sys/types.h>
  22. # if TIME_WITH_SYS_TIME
  23. # include <sys/time.h>
  24. # include <time.h>
  25. # else
  26. # if HAVE_SYS_TIME_H
  27. # include <sys/time.h>
  28. # else
  29. # include <time.h>
  30. # endif
  31. # endif
  32. #endif /* defined (vms) */
  33. time_t curl_getdate PARAMS ((const char *p, const time_t *now));