Server Help Forum Index Server Help
Community forums for Subgame, ASSS, and bots
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   StatisticsStatistics   RegisterRegister 
 ProfileProfile   Login to check your private messagesLogin to check your private messages   LoginLogin (SSL) 

Server Help | ASSS Wiki (0) | Shanky.com
local time

 
Post new topic   Reply to topic Printable version
 View previous topic  getting started? Post :: Post asss-1.3.6, windows version. asss run...  View next topic  
Author Message
EdTheInvincible
Bumper? on!


Age:25
Joined: Apr 29 2004
Posts: 119
Location: Over There
Offline

PostPosted: Sat Feb 19, 2005 4:24 pm    Post subject: local time Reply to topic Reply with quote

having ?uptime give you the server's local date and time as well would be good, so you could have timestamps inside log files. and i bet it's not that hard to implement either. ok maybe it is, i dont know, i dont do any asss coding. but it would be really useful, so you might just want to do it. biggrin.gif
_________________
Quidquid latine dictum sit, altum viditur.
Back to top
View users profile Send private message Add User to Ignore List
MS-DOS
Whats with people wanting their name changed?


Age:57
Gender:Gender:Male
Joined: Apr 04 2004
Posts: 96
Location: Spain
Offline

PostPosted: Mon Feb 21, 2005 9:56 am    Post subject: Reply to topic Reply with quote

Well, if you are a sysop you can see the local time when you type in *log.
_________________
SSN Owner
SSN Biller Programmer Administrator
Back to top
View users profile Send private message Add User to Ignore List Visit posters website AIM Address Yahoo Messenger MSN Messenger
Dr Brain
Flip-flopping like a wind surfer


Age:39
Gender:Gender:Male
Joined: Dec 01 2002
Posts: 3502
Location: Hyperspace
Offline

PostPosted: Mon Feb 21, 2005 10:05 am    Post subject: Reply to topic Reply with quote

Make a ?localtime command and send me the source. I'll put it up in Hyperspace.
_________________
Hyperspace Owner

Smong> so long as 99% deaths feel lame it will always be hyperspace to me
Back to top
View users profile Send private message Add User to Ignore List AIM Address Yahoo Messenger MSN Messenger
Mine GO BOOM
Hunch Hunch
What What
Hunch Hunch<br>What What


Age:42
Gender:Gender:Male
Joined: Aug 01 2002
Posts: 3615
Location: Las Vegas
Offline

PostPosted: Mon Feb 21, 2005 12:08 pm    Post subject: Reply to topic Reply with quote

Code: Show/Hide
time_t t1;
char t3[128];

time(&t1);
strftime(t3, sizeof(t3), CFG_TIMEFORMAT, localtime(&t1));

Stolen right from log_file.c's LogFile function. Works on both Linux and Windows without a problem. Learn more about the format specification to setup whatever output you want. If you want, make it where even the user can input his own format string. Just make sure you null-terminate it at a safe length, and should't have a problem with it, as I don't see a specification saying that strftime is required to null-terminate it.
Back to top
View users profile Send private message Add User to Ignore List Send email
Solo Ace
Yeah, I'm in touch with reality...we correspond from time to time.


Age:38
Gender:Gender:Male
Joined: Feb 06 2004
Posts: 2583
Location: The Netherlands
Offline

PostPosted: Mon Feb 21, 2005 1:26 pm    Post subject: Reply to topic Reply with quote

Yay, what a great idea. sa_tongue.gif
Back to top
View users profile Send private message Add User to Ignore List
EdTheInvincible
Bumper? on!


Age:25
Joined: Apr 29 2004
Posts: 119
Location: Over There
Offline

PostPosted: Mon Feb 21, 2005 1:27 pm    Post subject: Reply to topic Reply with quote

i hope it works.. i dont do alot of asss coding new_evil.gif



localtime.zip - 5.46 KB
File downloaded or viewed 24 time(s)
Back to top
View users profile Send private message Add User to Ignore List
Night_Fox
dark_mistress is too sexy for me


Age:54
Gender:Gender:Female
Joined: Jan 24 2004
Posts: 252
Offline

PostPosted: Tue Feb 22, 2005 5:03 am    Post subject: Reply to topic Reply with quote

Cool but I have a better idea icon_wink.gif
Back to top
View users profile Send private message Add User to Ignore List
Solo Ace
Yeah, I'm in touch with reality...we correspond from time to time.


Age:38
Gender:Gender:Male
Joined: Feb 06 2004
Posts: 2583
Location: The Netherlands
Offline

PostPosted: Tue Feb 22, 2005 1:50 pm    Post subject: Reply to topic Reply with quote

Yeah, setting up a MySQL database server and then h4x the client to force it to open up a browser window loading a page which queries the MySQL database for the current time and then makes it show on the webpage is a great idea!
Back to top
View users profile Send private message Add User to Ignore List
Display posts from previous:   
Post new topic   Reply to topic    Server Help Forum Index -> ASSS Questions All times are GMT - 5 Hours
Page 1 of 1

 
Jump to:  
You can post new topics in this forum
You can 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
You can attach files in this forum
You can download files in this forum
View online users | View Statistics | View Ignored List


Software by php BB © php BB Group
Server Load: 44 page(s) served in previous 5 minutes.

phpBB Created this page in 0.504567 seconds : 34 queries executed (93.9%): GZIP compression disabled