| View previous topic :: View next topic |
| Author |
Message |
l337 Voice
Joined: 15 Jan 2005 Posts: 6
|
Posted: Tue Aug 30, 2005 6:06 am Post subject: How to get a timestamp from a d-M-Y date? |
|
|
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 |
|
 |
De Kus Revered One

Joined: 15 Dec 2002 Posts: 1361 Location: Germany
|
Posted: Tue Aug 30, 2005 7:05 am Post subject: |
|
|
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 |
|
 |
|