123456789101112131415161718192021222324252627 |
- #ifndef __Y2KTIME_H__
- #define __Y2KTIME_H__
- #pragma once
- #include "config.h"
- #include <winpr/wtypes.h>
- #ifdef __cplusplus
- extern "C" {
- #endif
- typedef unsigned int y2k_time_t;
- TOOLKIT_API y2k_time_t y2k_time_now();
- TOOLKIT_API __time64_t y2k_time_to_time64(y2k_time_t t);
- TOOLKIT_API int y2k_to_string(y2k_time_t t, char *buf, size_t n);
- TOOLKIT_API y2k_time_t y2k_from_ymdhms(int year, int month, int day, int hour, int minute, int second);
- TOOLKIT_API int y2k_to_localtime_tm(y2k_time_t t, struct tm *tm);
- TOOLKIT_API int y2k_to_localtime(y2k_time_t t, LPSYSTEMTIME pt);
- TOOLKIT_API int y2k_time_is_today(y2k_time_t t);
- #ifdef __cplusplus
- } // extern "C" {
- #endif
- #endif //__Y2KTIME_H__
|