summaryrefslogtreecommitdiff
path: root/components/libc/compilers/common/Kconfig
blob: bc7bc9f323ff154d802963f272f57dece6756681 (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
menu "ISO-ANSI C layer"

menu "Timezone and Daylight Saving Time"
    config RT_LIBC_USING_FULL_TZ_DST
        bool "Enable fully version timezone and daylight saving time with database"
        select PKG_USING_TZ_DATABASE # select timezone database software package
        default n
        help
            RT_LIBC_USING_FULL_TZ_DST controls whether "full timezone and daylight saving time functionality with database" is enabled.

            Essentially, it allows RT-Thread to support precise time conversion based on a global timezone database.

            Features:
            Global timezone adaptation
            Automatic daylight saving time (DST) handling
            Standard time interface compatibility

            Dependencies:
            Once enabled (disabled by default), it automatically enables the tz_database package in the RT-Thread software package.

            After enabling RT_LIBC_USING_FULL_TZ_DST, the project will automatically import the tz_database code and data files.


    config RT_LIBC_USING_LIGHT_TZ_DST
        bool "Enable lightweight timezone and daylight saving time"
        depends on !RT_LIBC_USING_FULL_TZ_DST
        default y
        help
            RT_LIBC_USING_LIGHT_TZ_DST is a lightweight timezone and daylight saving time configuration option within the C standard library (libc) component of RT-Thread.
            It is a lightweight alternative to RT_LIBC_USING_FULL_TZ_DST (the full timezone solution).

            It achieves local timezone conversion using a fixed time offset, rather than relying on a large timezone database.

            This option is enabled by default, but only one of RT_LIBC_USING_FULL_TZ_DST can be enabled at a time.
            When enabled, three sub-configuration options will be displayed.
            

    if RT_LIBC_USING_LIGHT_TZ_DST
        config RT_LIBC_TZ_DEFAULT_HOUR
            int "Set the default local timezone (hour)"
            range -12 12
            default 8
            help
                The hour offset of the local time zone relative to UTC (range -12~12, default 8, corresponding to UTC+8 Beijing time).

        config RT_LIBC_TZ_DEFAULT_MIN
            int "Set the default local timezone (minute)"
            range -59 59
            default 0
            help
                Minute offset (range -59~59, default 0)
        config RT_LIBC_TZ_DEFAULT_SEC
            int "Set the default local timezone (second)"
            range -59 59
            default 0
            help
                Second offset (range -59~59, default 0)

    endif
endmenu

endmenu