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.
Help for those learning Tcl or writing their own scripts.
-
pipo
- Voice
- Posts: 16
- Joined: Sat Nov 18, 2006 2:51 pm
Post
by pipo »
uhm dont know if this the right forum to ask this...
I have stuff stored in a .txt file with unixtime format, like 1163894721
Now I have a new script that stores everyting in a mysqldb in datime format like: 2007-13-01 19:40:23
Now my question is, is it possible to change the unxitime from the .txt file into datetime, so i can load it in the mysqldb?
If yes, how can I do that?
Thanks.
-
rosc2112
- Revered One
- Posts: 1454
- Joined: Sun Feb 19, 2006 8:36 pm
- Location: Northeast Pennsylvania
Post
by rosc2112 »
Check the [strftime] command and your unix manpage for strftime formats.