Beefy Boxes and Bandwidth Generously Provided by pair Networks
Pathologically Eclectic Rubbish Lister
 
PerlMonks  

•Re: Re: How do i get "the last day of last month"?

by merlyn (Sage)
on Apr 28, 2003 at 03:15 UTC ( [id://253583]=note: print w/replies, xml ) Need Help??


in reply to Re: How do i get "the last day of last month"?
in thread How do i get "the last day of last month"?

Beware Date::Manip, though, if a simpler solution applies.

-- Randal L. Schwartz, Perl hacker
Be sure to read my standard disclaimer if this is a reply.

  • Comment on •Re: Re: How do i get "the last day of last month"?

Replies are listed 'Best First'.
Re: •Re: Re: How do i get "the last day of last month"?
by BrowserUk (Patriarch) on Apr 28, 2003 at 04:18 UTC

    Define "simpler" :)

    perl -MDate::Manip -e"print UnixDate( ParseDate( 'last day in' . UnixD +ate( ParseDate('last month'),'%B') ), '%Y/%m/%d' )"

    Examine what is said, not who speaks.
    1) When a distinguished but elderly scientist states that something is possible, he is almost certainly right. When he states that something is impossible, he is very probably wrong.
    2) The only way of discovering the limits of the possible is to venture a little way past them into the impossible
    3) Any sufficiently advanced technology is indistinguishable from magic.
    Arthur C. Clarke.

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://253583]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others rifling through the Monastery: (5)
As of 2024-04-24 22:33 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found