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.

is there a way to return date in tcl?

Old posts that have not been replied to for several years.
Locked
T
TurboChicken
Halfop
Posts: 61
Joined: Wed Sep 29, 2004 3:18 pm

is there a way to return date in tcl?

Post by TurboChicken »

is there a variable or something in tcl that would return the date of today...

i.e.... if it's 13 of march 2005 13/03/2005 ( for you americans 03/13/2005)

it would return simply 13

if there is it would be nice to know what it is
g
greenbear
Owner
Posts: 733
Joined: Mon Sep 24, 2001 8:00 pm
Location: Norway

Post by greenbear »

For the date (13)

Code: Select all

strftime %d
For the full date (13/03/2005)

Code: Select all

strftime %d/%m/%Y
User avatar
De Kus
Revered One
Posts: 1361
Joined: Sun Dec 15, 2002 11:41 am
Location: Germany

Post by De Kus »

read "The Manual", eggdrop has an extra tcl function, maybe you like the original one, too:
http://www.tcl.tk/man/tcl8.4/TclCmd/clock.htm
De Kus
StarZ|De_Kus, De_Kus or DeKus on IRC
Copyright © 2005-2009 by De Kus - published under The MIT License
Love hurts, love strengthens...
Locked