time.h 541 B

123456789101112131415161718192021222324
  1. /*
  2. * Copyright (c) 2006-2018, RT-Thread Development Team
  3. *
  4. * SPDX-License-Identifier: Apache-2.0
  5. *
  6. * Change Logs:
  7. * Date Author Notes
  8. */
  9. #ifndef __TIME_H__
  10. #define __TIME_H__
  11. #include <sys/time.h>
  12. time_t mktime(struct tm * const t);
  13. char *asctime(const struct tm *timeptr);
  14. char *ctime(const time_t *timep);
  15. struct tm* localtime(const time_t* t);
  16. char *asctime_r(const struct tm *t, char *buf);
  17. struct tm *gmtime_r(const time_t *timep, struct tm *r);
  18. struct tm* localtime_r(const time_t* t, struct tm* r);
  19. #endif