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 

changing unxitime into datetime

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


Joined: 18 Nov 2006
Posts: 16

PostPosted: Sat Jan 13, 2007 2:39 pm    Post subject: changing unxitime into datetime Reply with quote

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.
Back to top
View user's profile Send private message
rosc2112
Revered One


Joined: 19 Feb 2006
Posts: 1454
Location: Northeast Pennsylvania

PostPosted: Sat Jan 13, 2007 5:14 pm    Post subject: Reply with quote

Check the [strftime] command and your unix manpage for strftime formats.
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