approxidate_relative()
#
Parses a human-readable date string and returns the corresponding timestamp relative to the current time.
Prototype
timestamp_t approxidate_relative(
const char *date
);
Parameters
Key |
Type |
Description |
---|---|---|
|
|
A human-readable date string, such as ‘yesterday’, ‘2 weeks ago’, or ‘next Friday’. |
Return Value
Returns the parsed timestamp as a timestamp_t
value, representing the number of seconds since the Unix epoch.
Notes
This function interprets relative date expressions based on the current system time. It supports various formats, including absolute dates, relative time expressions, and named days of the week.
Prototype
// Not applicable in JS
Prototype
# Not applicable in Python
Examples
// TODO C examples
// TODO JS examples
# TODO Python examples