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.

adding timestamp to script

Old posts that have not been replied to for several years.
Locked
g
grinch157
Halfop
Posts: 42
Joined: Tue Nov 11, 2003 4:34 pm

adding timestamp to script

Post by grinch157 »

hey, can anyone tell me what the correct command is for having just the time and not the date so it can be added to a string???

any and all help is appreciated.

thanks in advance
User avatar
user
 
Posts: 1452
Joined: Tue Mar 18, 2003 9:58 pm
Location: Norway

Post by user »

Either use tcl's native clock command or the less verbose 'strftime' (provided by eggdrop, so check tcl-commands.doc for details)
Have you ever read "The Manual"?
g
grinch157
Halfop
Posts: 42
Joined: Tue Nov 11, 2003 4:34 pm

Post by grinch157 »

i have checked the tcl-commands.doc before i posted.. and it's not very specific about it..... it talks about setting the formats but the few examples it gives they include dates and thats not what i want.. (unless i'm understanding right?)
User avatar
user
 
Posts: 1452
Joined: Tue Mar 18, 2003 9:58 pm
Location: Norway

Post by user »

a formatted string of time using standard strftime format.
Try 'man strftime' :)
Have you ever read "The Manual"?
g
grinch157
Halfop
Posts: 42
Joined: Tue Nov 11, 2003 4:34 pm

Post by grinch157 »

okay,

so i can use the strftime command as is right? meaning i don't have to input a string?? if so thats way cool!

thank you so much your help man..
Locked