summaryrefslogtreecommitdiffstats
path: root/intl/icu_capi/js/package/docs/source/time_ffi.rst
blob: dff1373031b714e789370f2930be235777c873cc (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
``time::ffi``
=============

.. js:class:: ICU4XTime

    An ICU4X Time object representing a time in terms of hour, minute, second, nanosecond

    See the `Rust documentation for Time <https://docs.rs/icu/latest/icu/calendar/types/struct.Time.html>`__ for more information.


    .. js:function:: create(hour, minute, second, nanosecond)

        Creates a new :js:class:`ICU4XTime` given field values

        See the `Rust documentation for Time <https://docs.rs/icu/latest/icu/calendar/types/struct.Time.html>`__ for more information.


    .. js:function:: create_midnight()

        Creates a new :js:class:`ICU4XTime` representing midnight (00:00.000).

        See the `Rust documentation for Time <https://docs.rs/icu/latest/icu/calendar/types/struct.Time.html>`__ for more information.


    .. js:method:: hour()

        Returns the hour in this time

        See the `Rust documentation for hour <https://docs.rs/icu/latest/icu/calendar/types/struct.Time.html#structfield.hour>`__ for more information.


    .. js:method:: minute()

        Returns the minute in this time

        See the `Rust documentation for minute <https://docs.rs/icu/latest/icu/calendar/types/struct.Time.html#structfield.minute>`__ for more information.


    .. js:method:: second()

        Returns the second in this time

        See the `Rust documentation for second <https://docs.rs/icu/latest/icu/calendar/types/struct.Time.html#structfield.second>`__ for more information.


    .. js:method:: nanosecond()

        Returns the nanosecond in this time

        See the `Rust documentation for nanosecond <https://docs.rs/icu/latest/icu/calendar/types/struct.Time.html#structfield.nanosecond>`__ for more information.