Beefy Boxes and Bandwidth Generously Provided by pair Networks
good chemistry is complicated,
and a little bit messy -LW

Re: Re: Date

by redcloud (Parson)
on Mar 12, 2001 at 04:26 UTC ( #63700=note: print w/ replies, xml ) Need Help??

in reply to Re: Date
in thread How to find yesterdays date (was: Date)

Yes, if you want to remove the leading zero, you can change the %02d in the sprintf command to %d. You probably need to look at whether you'll have to do this for the day, too. (And the %04d for the year was just overkill on my part, unless you've got files over 1001 years old. 8^P )

Comment on Re: Re: Date

Log In?

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

How do I use this? | Other CB clients
Other Users?
Others browsing the Monastery: (4)
As of 2015-11-28 09:03 GMT
Find Nodes?
    Voting Booth?

    What would be the most significant thing to happen if a rope (or wire) tied the Earth and the Moon together?

    Results (740 votes), past polls