vf_period_string_to_time(3) vf_period_string_to_time()

SYNOPSIS

#include <../vformat/vf_iface.h>

extern bool_t vf_period_string_to_time
(
       VF_ISO8601_PERIOD_T *p_period,

       const char *p_string

);

PARAMETERS

VF_ISO8601_PERIOD_T *p_period
Output time value.
const char *p_string
Input string.

DESCRIPTION

Convert period definition string to time value. The format is P[aaaY][bbbM][cccW][dddD]T[eeeH][fffM][gggS] where 'aaa' is a number of years, bbb months etc.

RETURNS

TRUE <=> conversion OK, FALSE else.