summaryrefslogtreecommitdiffstats
path: root/intl/icu_capi/c/include/ICU4XTime.h
blob: 2f3a9967fa2373cb1bc886e707fe331183ac42c5 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
#ifndef ICU4XTime_H
#define ICU4XTime_H
#include <stdio.h>
#include <stdint.h>
#include <stddef.h>
#include <stdbool.h>
#include "diplomat_runtime.h"

#ifdef __cplusplus
namespace capi {
#endif

typedef struct ICU4XTime ICU4XTime;
#ifdef __cplusplus
} // namespace capi
#endif
#include "diplomat_result_box_ICU4XTime_ICU4XError.h"
#ifdef __cplusplus
namespace capi {
extern "C" {
#endif

diplomat_result_box_ICU4XTime_ICU4XError ICU4XTime_create(uint8_t hour, uint8_t minute, uint8_t second, uint32_t nanosecond);

diplomat_result_box_ICU4XTime_ICU4XError ICU4XTime_create_midnight();

uint8_t ICU4XTime_hour(const ICU4XTime* self);

uint8_t ICU4XTime_minute(const ICU4XTime* self);

uint8_t ICU4XTime_second(const ICU4XTime* self);

uint32_t ICU4XTime_nanosecond(const ICU4XTime* self);
void ICU4XTime_destroy(ICU4XTime* self);

#ifdef __cplusplus
} // extern "C"
} // namespace capi
#endif
#endif