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
265 struct timeval *end_time,
status_t
global error return code
Definition: status_enum.h:187
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:326
status_t tstamp_htmltime2time(const xmlChar *timestr, time_t *timerec)
Convert the specified HTML timestamp string to time_t format.
Definition: tstamp.c:671
void tstamp_time2hex(time_t *tim, xmlChar *buf)
Convert the time_t to a string of hex digits.
Definition: tstamp.c:794
void tstamp_local_datetime(xmlChar *buff)
Set the current date and time in an XML dateTime string format.
Definition: tstamp.c:297
void tstamp_datetime_sql(xmlChar *buff)
Set the current date and time in an XML dateTime string format.
Definition: tstamp.c:382
void tstamp_date(xmlChar *buff)
Set the current date in an XML dateTime string format.
Definition: tstamp.c:349
void tstamp_highres_datetime(xmlChar *buff)
Set the current date and time in an XML dateTime string format using highres format.
Definition: tstamp.c:274
void tstamp_datetime_dirname(xmlChar *buff)
Set the current date and time in an XML dateTime string format.
Definition: tstamp.c:570
time_t tstamp_cvt_TIME(char const *time_str)
Convert the DATE string to a time_t.
Definition: tstamp.c:841
void tstamp_datetime(xmlChar *buff)
Set the current date and time in an XML dateTime string format.
Definition: tstamp.c:245
void tstamp_highres_timenow(struct timespec *ts)
Get the current time using a high res timestamp.
Definition: tstamp.c:876
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:631
void tstamp_time2datetime(time_t *timerec, xmlChar *buff)
Convert the specified time_t to a YANG data-and-time format.
Definition: tstamp.c:600
void tstamp_now(time_t *tim)
Set the time_t to the current time.
Definition: tstamp.c:738
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:762
int32 tstamp_difftime(time_t *time1, time_t *time2)
Compare 2 time_t structs.
Definition: tstamp.c:711
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:429