64#define TSTAMP_MIN_HEXSIZE 17
71#define TSTAMP_MIN_SIZE 29
77#define TSTAMP_DATE_SIZE 12
80#define TSTAMP_SQL_SIZE 20
83#define TSTAMP_HTML_SIZE 50
278 struct timeval *end_time,
status_t
global error return code
Definition: status_enum.h:210
void tstamp_local_highres_datetime(xmlChar *buff)
Set the current date and time in an XML dateTime string format using highres format.
Definition: tstamp.c:339
status_t tstamp_htmltime2time(const xmlChar *timestr, time_t *timerec)
Convert the specified HTML timestamp string to time_t format.
Definition: tstamp.c:751
void tstamp_time2hex(time_t *tim, xmlChar *buf)
Convert the time_t to a string of hex digits.
Definition: tstamp.c:877
void tstamp_local_datetime(xmlChar *buff)
Set the current date and time in an XML dateTime string format.
Definition: tstamp.c:307
void tstamp_datetime_sql(xmlChar *buff)
Set the current date and time in an XML dateTime string format.
Definition: tstamp.c:400
void tstamp_local_time2datetime(time_t *timerec, xmlChar *buff)
Convert the specified time_t to a local time YANG date-and-time format.
Definition: tstamp.c:680
void tstamp_date(xmlChar *buff)
Set the current date in an XML dateTime string format.
Definition: tstamp.c:364
void tstamp_highres_datetime(xmlChar *buff)
Set the current date and time in an XML dateTime string format using highres format.
Definition: tstamp.c:281
void tstamp_datetime_dirname(xmlChar *buff)
Set the current date and time in an XML dateTime string format.
Definition: tstamp.c:616
time_t tstamp_cvt_TIME(char const *time_str)
Convert the DATE string to a time_t.
Definition: tstamp.c:1036
void tstamp_datetime(xmlChar *buff)
Set the current date and time in an XML dateTime string format.
Definition: tstamp.c:249
void tstamp_highres_timenow(struct timespec *ts)
Get the current time using a high res timestamp.
Definition: tstamp.c:1071
status_t tstamp_time2htmltime(time_t *timerec, xmlChar *buff, size_t buffsize)
Convert the specified time_t to a HTML timestamp string.
Definition: tstamp.c:711
void tstamp_time2datetime(time_t *timerec, xmlChar *buff)
Convert the specified time_t to a YANG data-and-time format.
Definition: tstamp.c:649
void tstamp_now(time_t *tim)
Set the time_t to the current time.
Definition: tstamp.c:819
void tstamp_set_datetime(xmlChar *buff, boolean use_local)
Set the current date and time in the buffer.
Definition: tstamp.c:1118
status_t tstamp_convert_to_time(const xmlChar *timestr, time_t *rtime)
Check if the specified string is a valid dateTime or date-and-time string is valid and if so,...
Definition: tstamp.c:930
long int tstamp_diff(struct timeval *start_time, struct timeval *end_time, long int *usec)
Get the elapsed time between two timeval structs.
Definition: tstamp.c:845
int32 tstamp_difftime(time_t *time1, time_t *time2)
Compare 2 time_t structs.
Definition: tstamp.c:792
xmlChar * tstamp_convert_to_utctime(const xmlChar *timestr, boolean *isNegative, status_t *res)
Check if the specified string is a valid dateTime or date-and-time string is valid and if so,...
Definition: tstamp.c:450