Dates with Perl

Dates with Perl

am 28.09.2004 05:54:42 von Firewalker

Hey guys,
I am newbie to perl. I am trying to deal with dates ( such trying to find
what the date would be after month). Is therea function or date class( I am
a java programmer, I couldnt find the right word instead of class) to do the
job?
Thanks for any help.

Re: Dates with Perl

am 28.09.2004 07:28:28 von pjacklam

"Firewalker" wrote:

> I am newbie to perl. I am trying to deal with dates ( such
> trying to find what the date would be after month). Is therea
> function or date class( I am a java programmer, I couldnt find
> the right word instead of class) to do the job?

There are lots of modules for this -- in fact there are too many.
As a place to start, look at Date::Manip:

perldoc Date::Manip

Peter

--
#!/local/bin/perl5 -wp -*- mode: cperl; coding: iso-8859-1; -*-
# matlab comment stripper (strips comments from Matlab m-files)
s/^((?:(?:[])}\w.]'+|[^'%])+|'[^'\n]*(?:''[^'\n]*)*')*).*/$1 /x;

Re: Dates with Perl

am 29.09.2004 07:42:27 von Dave Cross

On Mon, 27 Sep 2004 23:54:42 -0400, Firewalker wrote:

> Hey guys,
> I am newbie to perl. I am trying to deal with dates ( such trying to find
> what the date would be after month). Is therea function or date class( I am
> a java programmer, I couldnt find the right word instead of class) to do the
> job?

Use one or more of the the modules from the Perl DateTime project
(http://datetime.perl.org/).

Dave...

Re: Dates with Perl

am 14.01.2006 05:44:47 von gharrison64

Perl has a module you can download to handle things like that.
"Firewalker" wrote in message
news:_Pednb5BxJIcfcXcRVn-gw@rogers.com...
> Hey guys,
> I am newbie to perl. I am trying to deal with dates ( such trying to find
> what the date would be after month). Is therea function or date class( I
> am a java programmer, I couldnt find the right word instead of class) to
> do the job?
> Thanks for any help.
>