2019-07-28 10:31:56 +08:00
|
|
|
|
/*
|
2014-11-19 00:25:21 +08:00
|
|
|
|
* Name: misc.h
|
|
|
|
|
* Author: zsx
|
|
|
|
|
* Date: 2003-12-16
|
|
|
|
|
* Version: 1.0
|
|
|
|
|
*/
|
|
|
|
|
|
|
|
|
|
#ifndef ACL_MISC_INCLUDE_H
|
|
|
|
|
#define ACL_MISC_INCLUDE_H
|
|
|
|
|
|
|
|
|
|
#ifdef __cplusplus
|
|
|
|
|
extern "C" {
|
|
|
|
|
#endif
|
|
|
|
|
#include "acl_define.h"
|
|
|
|
|
#include <time.h>
|
|
|
|
|
|
|
|
|
|
/* acl_str2time.c */
|
|
|
|
|
/**
|
2019-07-28 10:31:56 +08:00
|
|
|
|
* <EFBFBD><EFBFBD>ʱ<EFBFBD><EFBFBD><EFBFBD>ַ<EFBFBD><EFBFBD><EFBFBD>ת<EFBFBD><EFBFBD>Ϊ time_t <EFBFBD><EFBFBD><EFBFBD><EFBFBD>
|
|
|
|
|
* @param str ʱ<EFBFBD><EFBFBD><EFBFBD>ַ<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ʽΪ: year-month-mday(<EFBFBD><EFBFBD>: 2004-1-1)
|
|
|
|
|
* @return time_t <EFBFBD><EFBFBD><EFBFBD>͵<EFBFBD>ֵ
|
2014-11-19 00:25:21 +08:00
|
|
|
|
*/
|
|
|
|
|
ACL_API time_t acl_str2time_t(const char *str);
|
|
|
|
|
|
|
|
|
|
#ifdef __cplusplus
|
|
|
|
|
}
|
|
|
|
|
#endif
|
|
|
|
|
|
|
|
|
|
#endif
|
|
|
|
|
|