pacemaker 2.1.6-6fdc9deea29
Scalable High-Availability cluster resource manager
Loading...
Searching...
No Matches
iso8601_internal.h
Go to the documentation of this file.
1/*
2 * Copyright 2015-2022 the Pacemaker project contributors
3 *
4 * The version control history for this file may have further details.
5 *
6 * This source code is licensed under the GNU Lesser General Public License
7 * version 2.1 or later (LGPLv2.1+) WITHOUT ANY WARRANTY.
8 */
9
10#ifndef PCMK__ISO8601_INTERNAL__H
11# define PCMK__ISO8601_INTERNAL__H
12
13#include <time.h>
14#include <sys/time.h>
15#include <ctype.h>
16#include <crm/common/iso8601.h>
17
19
21 const crm_time_t *dt);
24pcmk__time_hr_t *pcmk__time_hr_new(const char *date_time);
26char *pcmk__time_format_hr(const char *format, const pcmk__time_hr_t *hr_dt);
27char *pcmk__epoch2str(const time_t *source, uint32_t flags);
28char *pcmk__timespec2str(const struct timespec *ts, uint32_t flags);
29const char *pcmk__readable_interval(guint interval_ms);
30crm_time_t *pcmk__copy_timet(time_t source);
31
33 int years;
34 int months; /* Only for durations */
35 int days;
37 int offset; /* Seconds */
40};
41
42#endif
uint64_t flags
Definition remote.c:3
ISO_8601 Date handling.
struct crm_time_s crm_time_t
Definition iso8601.h:32
crm_time_t * pcmk__copy_timet(time_t source)
Definition iso8601.c:1391
char * pcmk__time_format_hr(const char *format, const pcmk__time_hr_t *hr_dt)
Definition iso8601.c:1773
pcmk__time_hr_t * pcmk__time_hr_convert(pcmk__time_hr_t *target, const crm_time_t *dt)
Definition iso8601.c:1688
char * pcmk__epoch2str(const time_t *source, uint32_t flags)
Definition iso8601.c:1858
const char * pcmk__readable_interval(guint interval_ms)
Definition iso8601.c:1926
pcmk__time_hr_t * pcmk__time_hr_new(const char *date_time)
Definition iso8601.c:1750
void pcmk__time_set_hr_dt(crm_time_t *target, const pcmk__time_hr_t *hr_dt)
Definition iso8601.c:1709
void pcmk__time_hr_free(pcmk__time_hr_t *hr_dt)
Definition iso8601.c:1767
char * pcmk__timespec2str(const struct timespec *ts, uint32_t flags)
Definition iso8601.c:1897
pcmk__time_hr_t * pcmk__time_hr_now(time_t *epoch)
Definition iso8601.c:1731
const char * target
Definition pcmk_fence.c:29