Dates with Perl

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.
Firewalker [ Di, 28 September 2004 05:54 ] [ ID #18663 ]

Re: Dates with Perl

"Firewalker" <hana1 [at] rogers.com> 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;
pjacklam [ Di, 28 September 2004 07:28 ] [ ID #18664 ]

Re: Dates with Perl

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...
Dave Cross [ Mi, 29 September 2004 07:42 ] [ ID #18666 ]

Re: Dates with Perl

Perl has a module you can download to handle things like that.
"Firewalker" <hana1 [at] rogers.com> wrote in message
news:_Pednb5BxJIcfcXcRVn-gw [at] 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.
>
gharrison64 [ Sa, 14 Januar 2006 05:44 ] [ ID #1141873 ]
Perl » alt.perl » Dates with Perl

Vorheriges Thema: Help with Sending Multiple Emails!
Nächstes Thema: Help with files