TinTin++ Mud Client The TinTin++ message board

 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 
TinTin++ Mud Client

timestamp

 
Post new topic   Reply to topic    The TinTin++ message board Forum Index -> Bug Reports
View previous topic :: View next topic  
Author Message
blkno1



Joined: 03 Dec 2007
Posts: 117

PostPosted: Tue Nov 16, 2010 6:25 am    Post subject: timestamp Reply with quote

Prob not a bug, but can figure out what I need to change for my timestamp to work again.

Code:
#alias gettime

{
   #format utime %T;
   #format {timestamp} {%t} {{%D %r} {$utime % 1000000 / 100000}};
}


Just stays at 12/31/69 07:00:09 PM

-bk
Back to top
View user's profile Send private message Yahoo Messenger
Scandum
Site Admin


Joined: 03 Dec 2004
Posts: 3844

PostPosted: Tue Nov 16, 2010 10:32 am    Post subject: Reply with quote

#math {$utime % 1000000 / 100000} always results in a value between 0 and 9.

You'd probably want to use #format utime %U to get the micro time stamp, and divide it by 1000000 to get the normal time stamp.
Back to top
View user's profile Send private message Send e-mail
blkno1



Joined: 03 Dec 2007
Posts: 117

PostPosted: Tue Nov 16, 2010 6:17 pm    Post subject: Reply with quote

This works even better. Most of it came from your man entry for #format

http://tintin.sourceforge.net/manual/format.php

Code:
#alias gettime
{
        #format timestamp {%c %t} {light green} {%m-%d-%Y %r};
}


#VARIABLE {timestamp}={ 11-16-2010 06:16:47 PM}

Thanks
Back to top
View user's profile Send private message Yahoo Messenger
Display posts from previous:   
Post new topic   Reply to topic    The TinTin++ message board Forum Index -> Bug Reports All times are GMT - 5 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
Get TinTin++ Mud Client at SourceForge.net. Fast, secure and Free Open Source software downloads Get TinTin++ Mud Client at SourceForge.net. Fast, secure and Free Open Source software downloads
TinTin++ Homepage

Powered by phpBB © 2001, 2002 phpBB Group