acl/lib_acl/include/stdlib/acl_timeops.h

31 lines
482 B
C
Raw Normal View History

/*
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 */
/**
* <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