Re: DateTime format of date
- From: Eric Pozharski <whynot@xxxxxxxxxxxxxx>
- Date: Fri, 20 Mar 2009 22:41:02 +0200
On 2009-03-19, Justin C <justin.0903@xxxxxxxxxxxxxx> wrote:
On 2009-03-18, Glenn Jackman <glennj@xxxxxx> wrote:*SKIP*
my $formattedDate = strftime "%d%m%y", localtime;
Works perfectly, thank you. But I'm not sure what's going on.
strftime = STRing Formatting of TIME?
... and why is the documentation for it in DateTime when you don't need
the DateTime module for it to run? There's obviously still a *lot* for
me to learn.
(mere attempt to make you more confused) Consider reading something
about Unix programming. That will make rounds about C (the very old
stuff the Perl is still written in, you know) obviously, but when you'll
succeed you'll acquire better understanding what Perl does.
*SKIP*
substr( my $fmtDate = $date->dmy(), 4, 2) = '';
Yeah, but it's not as clear/elegant as your first suggestion.
I beg to differ. Either clearness or elegance is matter of taste. As
of me this one is cute and teaching.
--
Torvalds' goal for Linux is very simple: World Domination
Stallman's goal for GNU is even simpler: Freedom
.
- Follow-Ups:
- Re: DateTime format of date
- From: Justin C
- Re: DateTime format of date
- References:
- DateTime format of date
- From: Justin C
- Re: DateTime format of date
- From: Glenn Jackman
- Re: DateTime format of date
- From: Justin C
- DateTime format of date
- Prev by Date: use warnings unless $foo
- Next by Date: Re: How can I keep LWP::UserAgent from adding the http-equiv strings from the Head section of the page?
- Previous by thread: Re: DateTime format of date
- Next by thread: Re: DateTime format of date
- Index(es):
Relevant Pages
|
Loading