NAME
Date::Manip::ConfigFile - sample config file
DESCRIPTION
Date::Manip is a highly configurable module. Many of the options can be set in a config file. This document includes a sample config file.
The config file consists of three sections. The first section is config variables. This is described more fully in the Date::Manip::Config document.
The second section is the holiday definition section. The third section is the event definition section. These are both described more fully in the Date::Manip::Holidays document.
SAMPLE CONFIG FILE
The sample config file below works for newer versions of Date::Manip. Some of the config variables may change, or be deprecated, and some may not work with earlier versions of Date::Manip, so it is strongly suggested that you check out the documentation for the version of Date::Manip you are using to confirm any of the config variables you want to include.
################################# CONFIG VARIABLES################################# See Date::Manip::Config man page for a description of all# config variables.# To include configuration information from additional# config files:ConfigFile = /path/to/another/config/fileConfigFile = /path/to/another/config/file2# For handling other languagesLanguage = EnglishDateFormat = USEncoding =# Set the current timezone:SetDate = now,America/New_York# Set the work workWorkWeekBeg = 1WorkWeekEnd = 5WorkDay24Hr = 0WorkDayBeg = 08:00WorkDayEnd = 17:00TomorrowFirst = 1# Misc. variablesYYtoYYYY = 89FirstDay = 1Use_POSIX_Printf = 0Week1ofYear = jan4Printable = 0DefaultTime = midnightRecurRange = none################################# HOLIDAYS################################# See the Date::Manip::Holidays man page for a description of# this section.*HOLIDAYS# FEDERAL HOLIDAYS################### You can express New Year's Day as the actual day (Jan 1)# or the observed day (Jan 1 or the nearest week day).# You can't include BOTH because once a day is marked as# a holiday, a second definition will treat it the same# as a weekend and choose another day to assign the holiday# to (so there would be two days designated as New Years).# Jan 1 = New Year's Day1*1:0:1:0:0:0*DWD = New Year's Day (observed)# Two different ways to defined MLK daythird Monday in Jan = Martin Luther King Jr.'s Birthday# 1*1:3:1:0:0:0 = Martin Luther King Jr.'s Birthday# Observed by federal employees in Washington D.C.# Jan 20 = Inauguration daythird Monday in Feb = Washington's Birthdaylast Monday in May = Memorial Day1st Monday in Sep = Labor Daysecond Monday in Oct = Columbus Day# Jul 4 = Independence Day1*7:0:4:0:0:0*DWD = Independence Day# 11/11 = Veterans Day1*11:0:11:0:0:0*DWD = Veteran's Day# To define both Thanksgiving and the day after, use the# following two lines:fourth Thu in Nov = Thanksgiving1*11:4:4:0:0:0*FD1 = Day after Thanksgiving# Dec 25 = Christmas1*12:0:25:0:0:0*DWD = Christmas# SAMPLE HOLIDAYS################### You can define a one-time-only holiday by specifying# the day and year.6/2/1999 = A special test holiday for 1999################################# EVENTS################################# See the Date::Manip::Holidays man page for a description of# this section.*EVENTS2000-02-01 = Event012000-02-01-12:00:00 = Event0202-01 = Event0302-01 12:00:00 = Event041*2:0:3:13:00:00 = Event052000-02-05 10:00:00 ; 2000-02-05 10:59:59 = Event062000-02-05 ; 2000-02-06 = Event0702-05 ; 02-06 = Event082000-02-07 10:00:00 ; 0:0:0:0:3:0:0 = Event0902-07 10:00:00 ; 0:0:0:0:4:0:0 = Event101*2:0:7:10:00:00 ; 0:0:0:0:5:0:0 = Event11
SEE ALSO
Date::Manip - main module documentation
LICENSE
This script is free software; you can redistribute it and/or modify it under the same terms as Perl itself.
AUTHOR
Sullivan Beck (https://github.com/SBECK-github/)