|
Packit |
95306a |
# Copyright (c) 2011-2017 Sullivan Beck. All rights reserved.
|
|
Packit |
95306a |
# This program is free software; you can redistribute it and/or modify it
|
|
Packit |
95306a |
# under the same terms as Perl itself.
|
|
Packit |
95306a |
|
|
Packit |
95306a |
=pod
|
|
Packit |
95306a |
|
|
Packit |
95306a |
=head1 NAME
|
|
Packit |
95306a |
|
|
Packit |
95306a |
Date::Manip::ConfigFile - sample config file
|
|
Packit |
95306a |
|
|
Packit |
95306a |
=head1 DESCRIPTION
|
|
Packit |
95306a |
|
|
Packit |
95306a |
Date::Manip is a highly configurable module. Many of the options
|
|
Packit |
95306a |
can be set in a config file. This document includes a sample config
|
|
Packit |
95306a |
file.
|
|
Packit |
95306a |
|
|
Packit |
95306a |
The config file consists of three sections. The first section is
|
|
Packit |
95306a |
config variables. This is described more fully in the L<Date::Manip::Config>
|
|
Packit |
95306a |
document.
|
|
Packit |
95306a |
|
|
Packit |
95306a |
The second section is the holiday definition section. The third section
|
|
Packit |
95306a |
is the event definition section. These are both described more fully
|
|
Packit |
95306a |
in the L<Date::Manip::Holidays> document.
|
|
Packit |
95306a |
|
|
Packit |
95306a |
=head1 SAMPLE CONFIG FILE
|
|
Packit |
95306a |
|
|
Packit |
95306a |
The sample config file below works for newer versions of Date::Manip.
|
|
Packit |
95306a |
Some of the config variables may change, or be deprecated, and some
|
|
Packit |
95306a |
may not work with earlier versions of Date::Manip, so it is strongly
|
|
Packit |
95306a |
suggested that you check out the documentation for the version of
|
|
Packit |
95306a |
Date::Manip you are using to confirm any of the config variables you
|
|
Packit |
95306a |
want to include.
|
|
Packit |
95306a |
|
|
Packit |
95306a |
################################
|
|
Packit |
95306a |
# CONFIG VARIABLES
|
|
Packit |
95306a |
################################
|
|
Packit |
95306a |
# See Date::Manip::Config man page for a description of all
|
|
Packit |
95306a |
# config variables.
|
|
Packit |
95306a |
|
|
Packit |
95306a |
# To include configuration information from additional
|
|
Packit |
95306a |
# config files:
|
|
Packit |
95306a |
|
|
Packit |
95306a |
ConfigFile = /path/to/another/config/file
|
|
Packit |
95306a |
ConfigFile = /path/to/another/config/file2
|
|
Packit |
95306a |
|
|
Packit |
95306a |
# For handling other languages
|
|
Packit |
95306a |
|
|
Packit |
95306a |
Language = English
|
|
Packit |
95306a |
DateFormat = US
|
|
Packit |
95306a |
Encoding =
|
|
Packit |
95306a |
|
|
Packit |
95306a |
# Set the current timezone:
|
|
Packit |
95306a |
|
|
Packit |
95306a |
SetDate = now,America/New_York
|
|
Packit |
95306a |
|
|
Packit |
95306a |
# Set the work work
|
|
Packit |
95306a |
|
|
Packit |
95306a |
WorkWeekBeg = 1
|
|
Packit |
95306a |
WorkWeekEnd = 5
|
|
Packit |
95306a |
WorkDay24Hr = 0
|
|
Packit |
95306a |
WorkDayBeg = 08:00
|
|
Packit |
95306a |
WorkDayEnd = 17:00
|
|
Packit |
95306a |
TomorrowFirst = 1
|
|
Packit |
95306a |
|
|
Packit |
95306a |
# Misc. variables
|
|
Packit |
95306a |
|
|
Packit |
95306a |
YYtoYYYY = 89
|
|
Packit |
95306a |
FirstDay = 1
|
|
Packit |
95306a |
Jan1Week1 = 0
|
|
Packit |
95306a |
Printable = 0
|
|
Packit |
95306a |
DefaultTime = midnight
|
|
Packit |
95306a |
RecurRange = none
|
|
Packit |
95306a |
|
|
Packit |
95306a |
################################
|
|
Packit |
95306a |
# HOLIDAYS
|
|
Packit |
95306a |
################################
|
|
Packit |
95306a |
# See the Date::Manip::Holidays man page for a description of
|
|
Packit |
95306a |
# this section.
|
|
Packit |
95306a |
*HOLIDAYS
|
|
Packit |
95306a |
|
|
Packit |
95306a |
# FEDERAL HOLIDAYS
|
|
Packit |
95306a |
##################
|
|
Packit |
95306a |
|
|
Packit |
95306a |
# You can express New Year's Day as the actual day (Jan 1)
|
|
Packit |
95306a |
# or the observed day (Jan 1 or the nearest week day).
|
|
Packit |
95306a |
# You can't include BOTH because once a day is marked as
|
|
Packit |
95306a |
# a holiday, a second definition will treat it the same
|
|
Packit |
95306a |
# as a weekend and choose another day to assign the holiday
|
|
Packit |
95306a |
# to (so there would be two days designated as New Years).
|
|
Packit |
95306a |
|
|
Packit |
95306a |
# Jan 1 = New Year's Day
|
|
Packit |
95306a |
1*1:0:1:0:0:0*DWD = New Year's Day (observed)
|
|
Packit |
95306a |
|
|
Packit |
95306a |
# Two different ways to defined MLK day
|
|
Packit |
95306a |
|
|
Packit |
95306a |
third Monday in Jan = Martin Luther King Jr.'s Birthday
|
|
Packit |
95306a |
# 1*1:3:1:0:0:0 = Martin Luther King Jr.'s Birthday
|
|
Packit |
95306a |
|
|
Packit |
95306a |
# Observed by federal employees in Washington D.C.
|
|
Packit |
95306a |
|
|
Packit |
95306a |
# Jan 20 = Inauguration day
|
|
Packit |
95306a |
third Monday in Feb = Washington's Birthday
|
|
Packit |
95306a |
last Monday in May = Memorial Day
|
|
Packit |
95306a |
1st Monday in Sep = Labor Day
|
|
Packit |
95306a |
second Monday in Oct = Columbus Day
|
|
Packit |
95306a |
|
|
Packit |
95306a |
# Jul 4 = Independence Day
|
|
Packit |
95306a |
1*7:0:4:0:0:0*DWD = Independence Day
|
|
Packit |
95306a |
|
|
Packit |
95306a |
# 11/11 = Veterans Day
|
|
Packit |
95306a |
1*11:0:11:0:0:0*DWD = Veteran's Day
|
|
Packit |
95306a |
|
|
Packit |
95306a |
# To define both Thanksgiving and the day after, use the
|
|
Packit |
95306a |
# following two lines:
|
|
Packit |
95306a |
|
|
Packit |
95306a |
fourth Thu in Nov = Thanksgiving
|
|
Packit |
95306a |
1*11:4:4:0:0:0*FD1 = Day after Thanksgiving
|
|
Packit |
95306a |
|
|
Packit |
95306a |
# Dec 25 = Christmas
|
|
Packit |
95306a |
1*12:0:25:0:0:0*DWD = Christmas
|
|
Packit |
95306a |
|
|
Packit |
95306a |
# SAMPLE HOLIDAYS
|
|
Packit |
95306a |
##################
|
|
Packit |
95306a |
|
|
Packit |
95306a |
# You can define a one-time-only holiday by specifying
|
|
Packit |
95306a |
# the day and year.
|
|
Packit |
95306a |
|
|
Packit |
95306a |
6/2/1999 = A special test holiday for 1999
|
|
Packit |
95306a |
|
|
Packit |
95306a |
################################
|
|
Packit |
95306a |
# EVENTS
|
|
Packit |
95306a |
################################
|
|
Packit |
95306a |
# See the Date::Manip::Holidays man page for a description of
|
|
Packit |
95306a |
# this section.
|
|
Packit |
95306a |
*EVENTS
|
|
Packit |
95306a |
|
|
Packit |
95306a |
2000-02-01 = Event01
|
|
Packit |
95306a |
2000-02-01-12:00:00 = Event02
|
|
Packit |
95306a |
02-01 = Event03
|
|
Packit |
95306a |
02-01 12:00:00 = Event04
|
|
Packit |
95306a |
1*2:0:3:13:00:00 = Event05
|
|
Packit |
95306a |
|
|
Packit |
95306a |
2000-02-05 10:00:00 ; 2000-02-05 10:59:59 = Event06
|
|
Packit |
95306a |
2000-02-05 ; 2000-02-06 = Event07
|
|
Packit |
95306a |
02-05 ; 02-06 = Event08
|
|
Packit |
95306a |
|
|
Packit |
95306a |
2000-02-07 10:00:00 ; 0:0:0:0:3:0:0 = Event09
|
|
Packit |
95306a |
02-07 10:00:00 ; 0:0:0:0:4:0:0 = Event10
|
|
Packit |
95306a |
1*2:0:7:10:00:00 ; 0:0:0:0:5:0:0 = Event11
|
|
Packit |
95306a |
|
|
Packit |
95306a |
=head1 SEE ALSO
|
|
Packit |
95306a |
|
|
Packit |
95306a |
L<Date::Manip> - main module documentation
|
|
Packit |
95306a |
|
|
Packit |
95306a |
=head1 LICENSE
|
|
Packit |
95306a |
|
|
Packit |
95306a |
This script is free software; you can redistribute it and/or
|
|
Packit |
95306a |
modify it under the same terms as Perl itself.
|
|
Packit |
95306a |
|
|
Packit |
95306a |
=head1 AUTHOR
|
|
Packit |
95306a |
|
|
Packit |
95306a |
Sullivan Beck (sbeck@cpan.org)
|
|
Packit |
95306a |
|
|
Packit |
95306a |
=cut
|