Code Comments

Programming Forum and web based access to our favorite programming groups.
For Programmers: Free Programming Magazines | New: Database administration forum
Registration is free! Edit your profileCalendarFind other membersFrequently Asked QuestionsSearch -> 
Post New Thread











Thread
Author

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.



Report this thread to moderator Post Follow-up to this message
Old Post
Firewalker
09-28-04 08:57 AM


Re: Dates with Perl
"Firewalker" <hana1@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;

Report this thread to moderator Post Follow-up to this message
Old Post
Peter J. Acklam
09-28-04 08:57 AM


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 t
he
> job?

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

Dave...

Report this thread to moderator Post Follow-up to this message
Old Post
Dave Cross
09-29-04 09:58 AM


Re: Dates with Perl
Perl has a module you can download to handle things like that.
"Firewalker" <hana1@rogers.com> 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.
>



Report this thread to moderator Post Follow-up to this message
Old Post
G. Harrison Chiles Jr.
01-14-06 12:55 PM


Sponsored Links




Last Thread Next Thread Next
Search this forum -> 
Post New Thread

PERL Programming archive

Show a Printable Version Send to friend Email This Page to Someone! subscribe to this thread Receive updates to this thread
Computer Consultants
Programming Jobs
Visual Basic Controls
SQL Server Programming
Webservices
Java Security
Visual Studio
C# Programming
Visual J++
Software engineering
Open source Software
Perl Programming
PHP Programming
ASP Programming
ASP .NET Programming
Visual Basic Programming
Windows Scripting Host
Java Programming
Java Help
Java Beans
VBScript
Cobol
MAC Applications
Unix Programming
Forum Jump:
All times are GMT. The time now is 05:33 PM.

 
Free MCSE Braindumps | Real Estate Topics

Programming forum archive

Copyrights CodeComments.com 2004 - 2006

Powered by vBulletin Copyright 2000-2006 Jelsoft Enterprises Limited.