egghelp.org community Forum Index
[ egghelp.org home | forum home ]
egghelp.org community
Discussion of eggdrop bots, shell accounts and tcl scripts.
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

get yesterday date

 
Post new topic   Reply to topic    egghelp.org community Forum Index -> Scripting Help
View previous topic :: View next topic  
Author Message
paull
Voice


Joined: 01 Dec 2008
Posts: 6

PostPosted: Fri May 29, 2009 1:26 pm    Post subject: get yesterday date Reply with quote

To get the date I use:

Code:

proc getDate {} {
    set temp [clock format [clock seconds] -format "%Y-%m-%d"]
    return $temp
}


How can i get yesterdays date?

Thanks
Back to top
View user's profile Send private message
tsukeh
Voice


Joined: 20 Jan 2005
Posts: 31

PostPosted: Fri May 29, 2009 1:36 pm    Post subject: Reply with quote

Code:

proc getDate {} {
    set temp [clock format [clock scan "yesterday"] -format "%Y-%m-%d"]
    return $temp
}
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    egghelp.org community Forum Index -> Scripting Help All times are GMT - 4 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Forum hosting provided by Reverse.net

Powered by phpBB © 2001, 2005 phpBB Group
subGreen style by ktauber