This is the new home of the egghelp.org community forum.
All data has been migrated (including user logins/passwords) to a new phpBB version.


For more information, see this announcement post. Click the X in the top right-corner of this box to dismiss this message.

Question about date

Old posts that have not been replied to for several years.
Locked
-
-W0kk3L-
Voice
Posts: 24
Joined: Sun Feb 23, 2003 7:23 pm

Question about date

Post by -W0kk3L- »

A small question about the date... with "set date [strftime %Y-%m-%d]" in get the current date like 2005-06-03, but how do i get yesterdays date? Can i still use strftime or do i need to use 'clock', and if so, how?

Thnx for the help in advance ;)
-
-W0kk3L-
Voice
Posts: 24
Joined: Sun Feb 23, 2003 7:23 pm

Post by -W0kk3L- »

Never mind, found it! :)

[clock format [clock scan "yesterday"] -format %Y-%m-%d]

A new command for me ;b
User avatar
^DooM^
Owner
Posts: 772
Joined: Tue Aug 26, 2003 5:40 pm
Location: IronForge
Contact:

Post by ^DooM^ »

-W0kk3L- wrote:Never mind, found it! :)

[clock format [clock scan "yesterday"] -format %Y-%m-%d]

A new command for me ;b
Nice one for actually getting out there and searching for the answer. I salute you good sir. Pity more people out there dont follow your example :wink:
The lifecycle of a noob is complex. Fledgling noobs gestate inside biometric pods. Once a budding noob has matured thru gestation they climb out of their pod, sit down at a PC, ask a bunch of questions that are clearly in the FAQ, The Noob is born
User avatar
Alchera
Revered One
Posts: 3344
Joined: Mon Aug 11, 2003 12:42 pm
Location: Ballarat Victoria, Australia
Contact:

Post by Alchera »

Hear hear :)
Add [SOLVED] to the thread title if your issue has been.
Search | FAQ | RTM
-
-W0kk3L-
Voice
Posts: 24
Joined: Sun Feb 23, 2003 7:23 pm

Post by -W0kk3L- »

Hehhee :D 8)
Locked