time_to_tm.h 617 B

12345678910111213141516171819202122
  1. /* Copyright (c) 2003-2004, Roger Dingledine
  2. * Copyright (c) 2004-2006, Roger Dingledine, Nick Mathewson.
  3. * Copyright (c) 2007-2019, The Tor Project, Inc. */
  4. /* See LICENSE for licensing information */
  5. /**
  6. * \file time_to_tm.h
  7. * \brief Header for time_to_tm.c
  8. **/
  9. #ifndef TOR_WALLCLOCK_TIME_TO_TM_H
  10. #define TOR_WALLCLOCK_TIME_TO_TM_H
  11. #include <sys/types.h>
  12. struct tm;
  13. struct tm *tor_localtime_r_msg(const time_t *timep, struct tm *result,
  14. char **err_out);
  15. struct tm *tor_gmtime_r_msg(const time_t *timep, struct tm *result,
  16. char **err_out);
  17. #endif