1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-11-23 00:43:28 +00:00

Import of p5-Date-Manip, a module for doing date manipulation in perl.

This commit is contained in:
James FitzGibbon 1997-04-28 18:49:15 +00:00
parent 80ad3c94af
commit e09fa3556c
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=6356
5 changed files with 88 additions and 0 deletions

View File

@ -0,0 +1,26 @@
# New ports collection makefile for: p5-Date-Manip
# Version required: 5.10
# Date created: April 28th 1996
# Whom: James FitzGibbon <jfitz@FreeBSD.org>
#
# $Id$
#
DISTNAME= DateManip-5.10
PKGNAME= p5-Date-Manip-5.10
CATEGORIES= devel perl5
MASTER_SITES= ${MASTER_SITE_PERL_CPAN}
MASTER_SITE_SUBDIR= Date
MAINTAINER= jfitz@FreeBSD.ORG
BUILD_DEPENDS= perl5.003:${PORTSDIR}/lang/perl5
RUN_DEPENDS= perl5.003:${PORTSDIR}/lang/perl5
MAN3= Date::Manip.3
MANPREFIX= ${PREFIX}/lib/perl5
do-configure:
@ cd ${WRKSRC}; ${SETENV} ${MAKE_ENV} ${PREFIX}/bin/perl Makefile.PL
.include <bsd.port.mk>

View File

@ -0,0 +1 @@
MD5 (DateManip-5.10.tar.gz) = c06b976c7f980034a059161347e92098

View File

@ -0,0 +1 @@
perl5 module containing date manipulation routines

View File

@ -0,0 +1,56 @@
This is a set of routines designed to make any common
date/time manipulation easy to do. Operations such as
comparing two times, calculating a time a given amount of
time from another, or parsing international times are all
easily done.
Date::Manip deals only with the Gregorian calendar (the
one currently in use). The Julian calendar defined leap
years as every 4th year. The Gregorian calendar improved
this by making every 100th year NOT a leap year, unless it
was also the 400th year. The Gregorian calendar has been
extrapolated back to the year 1000 AD and forward to the
year 9999 AD. Note that in historical context, the Julian
calendar was in use until 1582 when the Gregorian calendar
was adopted by the Catholic church. Protestant countries
did not accept it until later; Germany and Netherlands in
1698, British Empire in 1752, Russia in 1918. Note that
the Gregorian calendar is itself imperfect. Each year is
on average 26 seconds too long, which means that every
3,323 years, a day should be removed from the calendar.
No attempt is made to correct for that.
Date::Manip is therefore not equipped to truly deal with
historacle dates, but should be able to perform
(virtually) any operation dealing with a modern time and
date.
Among other things, Date::Manip allow you to:
1. Enter a date and be able to choose any format
conveniant
2. Compare two dates, entered in widely different formats
to determine which is earlier
3. Extract any information you want from ANY date using a
format string similar to the Unix date command
4. Determine the amount of time between two dates
5. Add a time offset to a date to get a second date (i.e.
determine the date 132 days ago or 2 years and 3 months
after Jan 2, 1992)
6. Work with dates with dates using international formats
(foreign month names, 12-10-95 referring to October rather than
December, etc.).
Each of these tasks is trivial (one or two lines at most)
with this package.
Although the word date is used extensively here, it is
actually somewhat misleading. Date::Manip works with the
full date AND time (year, month, day, hour, minute,
second).

View File

@ -0,0 +1,4 @@
lib/perl5/man/man3/Date::Manip.3.gz
lib/perl5/site_perl/Date/Manip.pm
lib/perl5/site_perl/i386-freebsd/auto/Date/Manip/.packlist
@dirrm lib/perl5/site_perl/i386-freebsd/auto/Date/Manip