Debian Codegraph @

lib/Date/Manip/ConfigFile.pod

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