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 

How to get a timestamp from a d-M-Y date?

 
This forum is locked: you cannot post, reply to, or edit topics.   This topic is locked: you cannot edit posts or make replies.    egghelp.org community Forum Index -> Archive
View previous topic :: View next topic  
Author Message
l337
Voice


Joined: 15 Jan 2005
Posts: 6

PostPosted: Tue Aug 30, 2005 6:06 am    Post subject: How to get a timestamp from a d-M-Y date? Reply with quote

Hi all. I've for example a date like 23-08-2005, and I would like to convert it in the unixtime.
Thanks for ur help :p
Back to top
View user's profile Send private message
De Kus
Revered One


Joined: 15 Dec 2002
Posts: 1361
Location: Germany

PostPosted: Tue Aug 30, 2005 7:05 am    Post subject: Reply with quote

have you bothered to read the read the tcl command documentation of clock scan?

read date closely, because the shown string is not "standard compliant".
tip: you can string map the month to the 3 char representation, like {-08- -Aug-}.
Quote:
tcl: evaluate (.tcl): clock scan 23-08-2005
Tcl error: unable to convert date-time string "23-08-2005"
tcl: evaluate (.tcl): clock scan 23-Aug-2005
Tcl: 1124751600

_________________
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...
Back to top
View user's profile Send private message MSN Messenger
Display posts from previous:   
This forum is locked: you cannot post, reply to, or edit topics.   This topic is locked: you cannot edit posts or make replies.    egghelp.org community Forum Index -> Archive 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