|
Give you a data storage example:
; This configuration file is used to save the date classification setting data for one year.
[SETUP]
; Lunar leap year sign
EMBOLISM = 0
Number of categories
TYPE_COUNT = 5
TYPE_0_ID = 0
TYPE_0_NAME = Normal
TYPE_0_REMARK = dates other than type
TYPE_1_ID = 1
TYPE_1_NAME = Public Holiday
TYPE_1_REMARK = Saturday and Sunday other than
TYPE_2_ID = 2
TYPE_2_NAME = legal holiday
TYPE_2_REMARK = New Year's Day, Chinese New Year, Labor Day, etc.
TYPE_3_ID = 3
TYPE_3_NAME = special holiday
TYPE_3_REMARK = Regional Holiday
TYPE_4_ID = 4
TYPE_4_NAME = other types
TYPE_4_REMARK = Holidays set by the company
; Legal holiday data, format: month / day comma is the separator and dash is the interval.
TYPE_2_DAY_COUNT = 3
TYPE_2_DAY_0_DAY = 1/1
TYPE_2_DAY_1_DAY = 5 / 1-5 / 3
TYPE_2_DAY_2_DAY = 10 / 01-10 / 03
TYPE_2_DAY_0_NAME = New Year's Day
TYPE_2_DAY_1_NAME = Labor Day
TYPE_2_DAY_2_NAME = National Day
[DEFAULT]
COUNT = 11
DEFAULT_0_ID = 2
DEFAULT_0_DAY = 5 / 1-5 / 3
DEFAULT_0_NAME = Labor Day
DEFAULT_1_ID = 2
DEFAULT_1_DAY = 10 / 1-10 / 3
DEFAULT_1_NAME = National Day
DEFAULT_2_ID = 2
DEFAULT_2_DAY = 6/1
DEFAULT_2_NAME = Children's Day
DEFAULT_3_ID = 2
DEFAULT_3_DAY = 3/8
DEFAULT_3_NAME = Women's Day
DEFAULT_4_ID = 3
DEFAULT_4_DAY = 2/14
DEFAULT_4_NAME = Valentine's Day
DEFAULT_5_ID = 2
DEFAULT_5_DAY = 1/1
DEFAULT_5_NAME = New Year's Day
DEFAULT_6_ID = 2
DEFAULT_6_DAY = 1 / 1-1 / 3
DEFAULT_6_NAME = Chinese New Year
; Date calendar type, 0 = Gregorian calendar, 1 = Lunar calendar
DEFAULT_6_DAYTYPE = 1
DEFAULT_7_ID = 2
DEFAULT_7_DAY = 8/15
DEFAULT_7_NAME = Mid-Autumn Festival
; Date calendar type, 0 = Gregorian calendar, 1 = Lunar calendar
DEFAULT_7_DAYTYPE = 1
DEFAULT_8_ID = 2
DEFAULT_8_DAY = 1/15
DEFAULT_8_NAME = Lantern Festival
; Date calendar type, 0 = Gregorian calendar, 1 = Lunar calendar
DEFAULT_8_DAYTYPE = 1
DEFAULT_9_ID = 2
DEFAULT_9_DAY = 7/7
DEFAULT_9_NAME = Star Festival
; Date calendar type, 0 = Gregorian calendar, 1 = Lunar calendar
DEFAULT_9_DAYTYPE = 1
DEFAULT_10_ID = 2
DEFAULT_10_DAY = 7/17
DEFAULT_10_NAME = Ghost Festival
; Date calendar type, 0 = Gregorian calendar, 1 = Lunar calendar
DEFAULT_10_DAYTYPE = 1 |
|