blob: 14956745b66e07963dd10e13195301438ef78adb (
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
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
|
import { u8, u32 } from "./diplomat-runtime"
import { FFIError } from "./diplomat-runtime"
import { ICU4XError } from "./ICU4XError";
/**
* An ICU4X Time object representing a time in terms of hour, minute, second, nanosecond
* See the {@link https://docs.rs/icu/latest/icu/calendar/types/struct.Time.html Rust documentation for `Time`} for more information.
*/
export class ICU4XTime {
/**
* Creates a new {@link ICU4XTime `ICU4XTime`} given field values
* See the {@link https://docs.rs/icu/latest/icu/calendar/types/struct.Time.html Rust documentation for `Time`} for more information.
* @throws {@link FFIError}<{@link ICU4XError}>
*/
static create(hour: u8, minute: u8, second: u8, nanosecond: u32): ICU4XTime | never;
/**
* Creates a new {@link ICU4XTime `ICU4XTime`} representing midnight (00:00.000).
* See the {@link https://docs.rs/icu/latest/icu/calendar/types/struct.Time.html Rust documentation for `Time`} for more information.
* @throws {@link FFIError}<{@link ICU4XError}>
*/
static create_midnight(): ICU4XTime | never;
/**
* Returns the hour in this time
* See the {@link https://docs.rs/icu/latest/icu/calendar/types/struct.Time.html#structfield.hour Rust documentation for `hour`} for more information.
*/
hour(): u8;
/**
* Returns the minute in this time
* See the {@link https://docs.rs/icu/latest/icu/calendar/types/struct.Time.html#structfield.minute Rust documentation for `minute`} for more information.
*/
minute(): u8;
/**
* Returns the second in this time
* See the {@link https://docs.rs/icu/latest/icu/calendar/types/struct.Time.html#structfield.second Rust documentation for `second`} for more information.
*/
second(): u8;
/**
* Returns the nanosecond in this time
* See the {@link https://docs.rs/icu/latest/icu/calendar/types/struct.Time.html#structfield.nanosecond Rust documentation for `nanosecond`} for more information.
*/
nanosecond(): u32;
}
|