perl-Date-Calc-Endpoints - Generate start/end dates easily, based on type (year, month,...),

Property Value
Distribution ALT Linux Sisyphus
Repository Autoimports noarch
Package filename perl-Date-Calc-Endpoints-1.03-alt1.noarch.rpm
Package name perl-Date-Calc-Endpoints
Package version 1.03
Package release alt1
Package architecture noarch
Package type rpm
Category Development/Perl
Homepage -
License -
Maintainer -
Download size 63.18 KB
Installed size 63.18 KB
Date::Calc::Endpoints calculates a start/end date based on a interval type, and a number of intervals from the current date.
This is often required in running scheduled and ad-hoc reports using the same script, where the desired date range
has the requirement of, "7 months ago", or, "5 weeks ago, running Tuesday to Monday".
Three dates are returned for the given interval:
=over 4
First date of the interval
First date of the next interval
Last date of the interval
Two "end" dates are returned for convenience, as a report using a date+time field may require a query from
"2015-10-01 through 2015-11-01", but the title of the report may be, "Output for 2015-10-01 through 2015-10-31".
Date ranges are calculated based on the following parameters:
=over 4
type - the basic time interval for the report [ YEAR | QUARTER | MONTH | WEEK | DAY ] - no default, must be specified
Note: QUARTER calculates the ranges for (Jan-Mar / Apr-Jun / Jul-Sep / Oct-Dec)
intervals - how many "units in the past" (eq, "4 months ago") - default = 1
span - number of consecutive units (eq, "5 month window") - default = 1
sliding_window - Applicable if span > 1.  If sliding_window is set, each interval back will slide by one
unit of type.  If sliding window is not set, each interval back will slide by (span) units of type. - default = 0
direction - If set to "-", each positive value for "intervals" goes further into the past, and each negative value for "intervals"
goes further into the future.  If set to "+", the opposite applies.
start_day_of_week - For type = WEEK, the day which should be used as the first day of the week (SUNDAY, MONDAY, ...) - default = MONDAY
start_day_of_month - For type = MONTH, the day which should be used as the start date of the month.  Valid values are 1..28.
Date::Calc is used for these calculations.  If adding/subtracting months, and the day component of the start month is greater
than the number of days in the result...


Package Version Architecture Repository
perl-Date-Calc-Endpoints - - -


Name Value
/usr/share/perl5 -
perl(Class/ >= 0.340
perl(Date/ >= 6.0
perl( -
rpmlib(PayloadIsLzma) -


Name Value
perl(Date/Calc/ = 1.030
perl-Date-Calc-Endpoints = 1.03-alt1


Type URL
Binary Package perl-Date-Calc-Endpoints-1.03-alt1.noarch.rpm
Source Package perl-Date-Calc-Endpoints-1.03-alt1.src.rpm

Install Howto

  1. Add the following line to /etc/apt/sources.list:
    rpm [Sisyphus] noarch autoimports
    rpm [Sisyphus] noarch autoimports
  2. Update the package index:
    # sudo apt-get update
  3. Install perl-Date-Calc-Endpoints rpm package:
    # sudo apt-get install perl-Date-Calc-Endpoints



See Also

Package Description
perl-Date-Calc-Iterator-1.02-alt1.noarch.rpm perl module Date-Calc-Iterator
perl-Date-Chinese-1.12-alt1.noarch.rpm Calculate dates in the Chinese calendar
perl-Date-Christmas-1.02-alt1.noarch.rpm Calculates the day of the week Christmas falls upon given the year
perl-Date-CommonFormats-0.05-alt1.noarch.rpm Common date formats made simple
perl-Date-Components-0.2.1-alt1.noarch.rpm Parses, processes and formats ONLY dates and date components
perl-Date-Convert-French_Rev-0.08-alt1.noarch.rpm perl module Date-Convert-French_Rev
perl-Date-Converter-1.1-alt1.noarch.rpm perl module Date-Converter
perl-Date-Cutoff-JP-0.07-alt1.noarch.rpm Get the day cutoff and payday for in Japanese timezone
perl-Date-Darian-Mars-0.004-alt1.noarch.rpm the Darian calendar for Mars
perl-Date-Day-1.04-alt1.noarch.rpm Perl extension for converting a date to its respective day
perl-Date-DayOfWeek-1.22-alt1.noarch.rpm perl module Date-DayOfWeek
perl-Date-Decade-0.33-alt1.noarch.rpm perl module Date-Decade
perl-Date-Discordian-1.36-alt1.noarch.rpm perl module Date-Discordian
perl-Date-Easter-1.22-alt1.noarch.rpm Calculates Easter for any given year
perl-Date-Easter-scripts-1.22-alt1.noarch.rpm Date-Easter scripts