2010-09-14 14:24:25 -07:00
|
|
|
#ifndef __EVIL_TIME_H__
|
|
|
|
#define __EVIL_TIME_H__
|
|
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
* @file evil_time.h
|
|
|
|
* @brief The file that provides functions ported from Unix in time.h.
|
|
|
|
* @defgroup Evil_Time_Group Time.h functions
|
2012-12-18 10:38:35 -08:00
|
|
|
* @ingroup Evil
|
2010-09-14 14:24:25 -07:00
|
|
|
*
|
|
|
|
* This header provides functions ported from Unix in time.h.
|
|
|
|
*
|
|
|
|
* @{
|
|
|
|
*/
|
|
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
* @brief Convert the calendar time to broken-time representation in a
|
|
|
|
* user supplied data.
|
|
|
|
*
|
|
|
|
* @param timep The calender time.
|
|
|
|
* @param result The broken-down time representation.
|
|
|
|
* @return The broken-down time representation.
|
|
|
|
*
|
|
|
|
* This function converts the calendar time @p timep to a broken-time
|
|
|
|
* representation. The result is stored in the buffer @p result
|
|
|
|
* supplied by the user. If @p timep or @p result are @c NULL, or if
|
|
|
|
* an error occurred, this function returns @c NULL and the values in
|
2011-02-23 11:34:27 -08:00
|
|
|
* @p result might be undefined. Otherwise it returns @p result.
|
2010-09-14 14:24:25 -07:00
|
|
|
*
|
|
|
|
* Conformity: Non applicable.
|
|
|
|
*
|
|
|
|
* Supported OS: Windows XP.
|
|
|
|
*/
|
2014-10-19 11:24:50 -07:00
|
|
|
EAPI struct tm *evil_localtime_r(const time_t *timep, struct tm *result);
|
2010-09-14 14:24:25 -07:00
|
|
|
|
2014-09-28 06:28:25 -07:00
|
|
|
/**
|
|
|
|
* @brief Convert a string representation of time to a time tm structure .
|
|
|
|
*
|
|
|
|
* @param buf The string to convert.
|
|
|
|
* @param fmt The representation of time.
|
|
|
|
* @aram tm The time tm structure.
|
|
|
|
* @return The first character not processed in this function call.
|
|
|
|
*
|
|
|
|
* This function converts the string @p s to a time tm structure and
|
|
|
|
* fill the buffer @p tm. The format of the time is specified by
|
|
|
|
* @p format. on success, this function returns the first character
|
|
|
|
* not processed in this function call, @c NULL otherwise.
|
|
|
|
*
|
|
|
|
* Conformity: Non applicable.
|
|
|
|
*
|
|
|
|
* Supported OS: Windows XP.
|
|
|
|
*/
|
|
|
|
EAPI char *strptime(const char *buf, const char *fmt, struct tm *tm);
|
|
|
|
|
2010-09-14 14:24:25 -07:00
|
|
|
|
|
|
|
/**
|
|
|
|
* @}
|
|
|
|
*/
|
|
|
|
|
|
|
|
|
|
|
|
#endif /* __EVIL_TIME_H__ */
|