move time function to apropriate header

This commit is contained in:
Vincent Sanders 2016-04-19 10:36:35 +01:00
parent 836ea5679e
commit 4f38963337
2 changed files with 8 additions and 8 deletions

View File

@ -72,4 +72,12 @@ nserror nsc_snptimet(const char *str, size_t size, time_t *timep);
*/ */
nserror nsc_strntimet(const char *str, size_t size, time_t *timep); nserror nsc_strntimet(const char *str, size_t size, time_t *timep);
/**
* Create an RFC 1123 compliant date string from a Unix timestamp
*
* \param t The timestamp to consider
* \return Pointer to buffer containing string - invalidated by next call.
*/
const char *rfc1123_date(time_t t);
#endif #endif

View File

@ -176,14 +176,6 @@ nserror regcomp_wrapper(regex_t *preg, const char *regex, int cflags);
*/ */
char *human_friendly_bytesize(unsigned long bytesize); char *human_friendly_bytesize(unsigned long bytesize);
/**
* Create an RFC 1123 compliant date string from a Unix timestamp
*
* \param t The timestamp to consider
* \return Pointer to buffer containing string - invalidated by next call.
*/
const char *rfc1123_date(time_t t);
/** /**
* Returns a number of centiseconds, that increases in real time, for the * Returns a number of centiseconds, that increases in real time, for the
* purposes of measuring how long something takes in wall-clock terms. * purposes of measuring how long something takes in wall-clock terms.