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.
Old posts that have not been replied to for several years.
Rusher2K
Halfop
Posts: 88 Joined: Fri Apr 18, 2003 10:45 am
Location: Germany
Contact:
Post
by Rusher2K » Wed Nov 26, 2003 11:37 am
Hello,
has somebody an idea how to write a script that show the countdown until dezember 24
Like :
!countdown
3wks 6days 7hrs 26mins 1sec untill X-mas
egghead
Master
Posts: 481 Joined: Mon Oct 29, 2001 8:00 pm
Contact:
Post
by egghead » Wed Nov 26, 2003 12:03 pm
Rusher wrote: Hello,
has somebody an idea how to write a script that show the countdown until dezember 24
Like :
!countdown
3wks 6days 7hrs 26mins 1sec untill X-mas
Step one: determine the [clock seconds] of 24 December.
Step two: determine current time in [clock seconds].
Step three: Compute the difference of the two.
Step four: use [duration] to format the difference.