1Date::Manip::ConfigFileU(s3e)r Contributed Perl DocumentaDtaitoen::Manip::ConfigFile(3)
2
3
4
6 Date::Manip::ConfigFile - sample config file
7
9 Date::Manip is a highly configurable module. Many of the options can
10 be set in a config file. This document includes a sample config file.
11
12 The config file consists of three sections. The first section is
13 config variables. This is described more fully in the
14 Date::Manip::Config document.
15
16 The second section is the holiday definition section. The third
17 section is the event definition section. These are both described more
18 fully in the Date::Manip::Holidays document.
19
21 The sample config file below works for newer versions of Date::Manip.
22 Some of the config variables may change, or be deprecated, and some may
23 not work with earlier versions of Date::Manip, so it is strongly
24 suggested that you check out the documentation for the version of
25 Date::Manip you are using to confirm any of the config variables you
26 want to include.
27
28 ################################
29 # CONFIG VARIABLES
30 ################################
31 # See Date::Manip::Config man page for a description of all
32 # config variables.
33
34 # To include configuration information from additional
35 # config files:
36
37 ConfigFile = /path/to/another/config/file
38 ConfigFile = /path/to/another/config/file2
39
40 # For handling other languages
41
42 Language = English
43 DateFormat = US
44 Encoding =
45
46 # Set the current timezone:
47
48 SetDate = now,America/New_York
49
50 # Set the work work
51
52 WorkWeekBeg = 1
53 WorkWeekEnd = 5
54 WorkDay24Hr = 0
55 WorkDayBeg = 08:00
56 WorkDayEnd = 17:00
57 TomorrowFirst = 1
58
59 # Misc. variables
60
61 YYtoYYYY = 89
62 FirstDay = 1
63 Jan1Week1 = 0
64 Printable = 0
65 DefaultTime = midnight
66 RecurRange = none
67
68 ################################
69 # HOLIDAYS
70 ################################
71 # See the Date::Manip::Holidays man page for a description of
72 # this section.
73 *HOLIDAYS
74
75 # FEDERAL HOLIDAYS
76 ##################
77
78 # You can express New Year's Day as the actual day (Jan 1)
79 # or the observed day (Jan 1 or the nearest week day).
80 # You can't include BOTH because once a day is marked as
81 # a holiday, a second definition will treat it the same
82 # as a weekend and choose another day to assign the holiday
83 # to (so there would be two days designated as New Years).
84
85 # Jan 1 = New Year's Day
86 1*1:0:1:0:0:0*DWD = New Year's Day (observed)
87
88 # Two different ways to defined MLK day
89
90 third Monday in Jan = Martin Luther King Jr.'s Birthday
91 # 1*1:3:1:0:0:0 = Martin Luther King Jr.'s Birthday
92
93 # Observed by federal employees in Washington D.C.
94
95 # Jan 20 = Inauguration day
96 third Monday in Feb = Washington's Birthday
97 last Monday in May = Memorial Day
98 1st Monday in Sep = Labor Day
99 second Monday in Oct = Columbus Day
100
101 # Jul 4 = Independence Day
102 1*7:0:4:0:0:0*DWD = Independence Day
103
104 # 11/11 = Veterans Day
105 1*11:0:11:0:0:0*DWD = Veteran's Day
106
107 # To define both Thanksgiving and the day after, use the
108 # following two lines:
109
110 fourth Thu in Nov = Thanksgiving
111 1*11:4:4:0:0:0*FD1 = Day after Thanksgiving
112
113 # Dec 25 = Christmas
114 1*12:0:25:0:0:0*DWD = Christmas
115
116 # SAMPLE HOLIDAYS
117 ##################
118
119 # You can define a one-time-only holiday by specifying
120 # the day and year.
121
122 6/2/1999 = A special test holiday for 1999
123
124 ################################
125 # EVENTS
126 ################################
127 # See the Date::Manip::Holidays man page for a description of
128 # this section.
129 *EVENTS
130
131 2000-02-01 = Event01
132 2000-02-01-12:00:00 = Event02
133 02-01 = Event03
134 02-01 12:00:00 = Event04
135 1*2:0:3:13:00:00 = Event05
136
137 2000-02-05 10:00:00 ; 2000-02-05 10:59:59 = Event06
138 2000-02-05 ; 2000-02-06 = Event07
139 02-05 ; 02-06 = Event08
140
141 2000-02-07 10:00:00 ; 0:0:0:0:3:0:0 = Event09
142 02-07 10:00:00 ; 0:0:0:0:4:0:0 = Event10
143 1*2:0:7:10:00:00 ; 0:0:0:0:5:0:0 = Event11
144
146 Date::Manip - main module documentation
147
149 This script is free software; you can redistribute it and/or modify it
150 under the same terms as Perl itself.
151
153 Sullivan Beck (sbeck@cpan.org)
154
155
156
157perl v5.38.0 2023-07-20 Date::Manip::ConfigFile(3)