1#pragma once
 2
 3#include <pw_types.h>
 4
 5#ifdef __cplusplus
 6extern "C" {
 7#endif
 8
 9[[nodiscard]] bool pw_monotonic(PwValuePtr result);
10/*
11 * Return current timestamp.
12 */
13
14[[nodiscard]] bool pw_utcnow(PwValuePtr result);
15/*
16 * Return current UTC date/time.
17 */
18
19[[nodiscard]] _PwValue pw_timestamp_sum(PwValuePtr a, PwValuePtr b);
20/*
21 * Calculate a + b
22 */
23
24void pw_timestamp_add(PwValuePtr a, PwValuePtr b);
25/*
26 * Add b to a
27 */
28
29[[nodiscard]] _PwValue pw_timestamp_diff(PwValuePtr a, PwValuePtr b);
30/*
31 * Calculate  a - b
32 */
33
34[[nodiscard]] int pw_timestamp_cmp(PwValuePtr a, PwValuePtr b);
35/*
36 * Return:
37 *  -1 if a < b
38 *   0 if a == b
39 *   1 if a > b
40 */
41
42#ifdef __cplusplus
43}
44#endif