blob: 3bb2f146e89d80d9a07db33861d71415b46dd057 (
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
|
``week::ffi``
=============
.. js:class:: ICU4XWeekCalculator
A Week calculator, useful to be passed in to ``week_of_year()`` on Date and DateTime types
See the `Rust documentation for WeekCalculator <https://docs.rs/icu/latest/icu/calendar/week/struct.WeekCalculator.html>`__ for more information.
.. js:function:: create(provider, locale)
Creates a new :js:class:`ICU4XWeekCalculator` from locale data.
See the `Rust documentation for try_new <https://docs.rs/icu/latest/icu/calendar/week/struct.WeekCalculator.html#method.try_new>`__ for more information.
.. js:function:: create_from_first_day_of_week_and_min_week_days(first_weekday, min_week_days)
Additional information: `1 <https://docs.rs/icu/latest/icu/calendar/week/struct.WeekCalculator.html#structfield.first_weekday>`__, `2 <https://docs.rs/icu/latest/icu/calendar/week/struct.WeekCalculator.html#structfield.min_week_days>`__
.. js:method:: first_weekday()
Returns the weekday that starts the week for this object's locale
See the `Rust documentation for first_weekday <https://docs.rs/icu/latest/icu/calendar/week/struct.WeekCalculator.html#structfield.first_weekday>`__ for more information.
.. js:method:: min_week_days()
The minimum number of days overlapping a year required for a week to be considered part of that year
See the `Rust documentation for min_week_days <https://docs.rs/icu/latest/icu/calendar/week/struct.WeekCalculator.html#structfield.min_week_days>`__ for more information.
.. js:class:: ICU4XWeekOf
See the `Rust documentation for WeekOf <https://docs.rs/icu/latest/icu/calendar/week/struct.WeekOf.html>`__ for more information.
.. js:attribute:: week
.. js:attribute:: unit
.. js:class:: ICU4XWeekRelativeUnit
See the `Rust documentation for RelativeUnit <https://docs.rs/icu/latest/icu/calendar/week/enum.RelativeUnit.html>`__ for more information.
|