View unanswered posts | View active topics It is currently Mon Apr 27, 2026 10:43 pm



Reply to topic  [ 7 posts ] 
 Time format 
Author Message
Site Admin
User avatar

Joined: Sun Dec 24, 2000 3:00 am
Posts: 3151
Location: USA
Unread post Time format
I've noticed an odd format for times shown in TW. It uses the format HH:MM:SS AM/PM. Since it uses AM/PM, it's not military time, meaning HH should be from 1-12. However, TW displays midnight as 0 rather than 12. So what should be 12:05:15 AM is actually shown as 00:05:15 AM.

My question is, should I fix this, or will it cause problems with scripts and helpers if I change it? I don't have to change it. It's just a bug I noticed.

_________________
John Pritchett
EIS
---
Help fund the TradeWars websites! If you open a hosting account with A2 Hosting, the service EIS uses for all of its sites, EIS will earn credits toward its hosting bill.


Sat May 28, 2011 6:39 pm
Profile WWW
Veteran Op
User avatar

Joined: Thu Jun 02, 2005 2:00 am
Posts: 5558
Location: USA
Unread post Re: Time format
Minor issue to fix if we need to. Either way is fine.

_________________
May the unholy fires of corbomite ignite deep within the depths of your soul...

1. TWGS server @ twgs.navhaz.com
2. The NavHaz Junction - Tradewars 2002 Scripts, Resources and Downloads
3. Open IRC chat @ irc.freenode.net:6667 #twchan
4. Parrothead wrote: Jesus wouldn't Subspace Crawl.

*** SG memorial donations via paypal to: dpocky68@booinc.com
Image


Sat May 28, 2011 7:25 pm
Profile ICQ WWW
Site Admin
User avatar

Joined: Sun Dec 24, 2000 3:00 am
Posts: 3151
Location: USA
Unread post Re: Time format
Cool. Done.

I noticed it while coding some improvements to the announcement screen. It'll now jump to the starting point with a binary search rather than scan from start of file to specified date, so there shouldn't be any more long pauses or unnecessary disk access there.

_________________
John Pritchett
EIS
---
Help fund the TradeWars websites! If you open a hosting account with A2 Hosting, the service EIS uses for all of its sites, EIS will earn credits toward its hosting bill.


Sat May 28, 2011 7:29 pm
Profile WWW
Veteran Op

Joined: Tue Nov 28, 2006 4:04 pm
Posts: 5025
Unread post Re: Time format
There aren't that many scripts that use the time format and most of the scripts that do use the time as a trigger are more than likely private scripts used by scripters. This would be a minor change to repair and will effect very few scripts.


Sat May 28, 2011 7:45 pm
Profile
Commander

Joined: Sun Feb 25, 2001 3:00 am
Posts: 1838
Location: Guam USA
Unread post Re: Time format
Well for those that use it , it will be fun to work out the backward compatibility
so that those scripts work on current public versions of TW as well as this up coming one.

my 2ยข

_________________
TWGS V2 Vids World on Guam Port 2002
Telnet://vkworld.ddns.net:2002
Discord @ DiverDave#8374
Vid's World Discord

Founding Member -=[Team Kraaken]=- Ka Pla

Image
Winners of Gridwars 2010
MBN Fall Tournament 2011 winners Team Kraaken
Undisputed Champions of 2019 HHT Just for showing up!

The Oldist , Longist Running , Orginal Registered Owner of a TWGS server :
Vids World On Guam


Sat May 28, 2011 11:55 pm
Profile WWW
Site Admin
User avatar

Joined: Sun Dec 24, 2000 3:00 am
Posts: 3151
Location: USA
Unread post Re: Time format
It's a very easy conversion. In any time display of HH:MM:SS AM, if HH is 12 in the new version, it should be 00 in the old one. So for example, 12:08:20 AM would convert to 00:08:20 AM to be compatible with the old version. But I'd be very surprised if any script cared about the hour field of a date. These show up in the log files and when you press T to see the time.

_________________
John Pritchett
EIS
---
Help fund the TradeWars websites! If you open a hosting account with A2 Hosting, the service EIS uses for all of its sites, EIS will earn credits toward its hosting bill.


Sun May 29, 2011 12:59 am
Profile WWW
Veteran Op
User avatar

Joined: Thu Jun 02, 2005 2:00 am
Posts: 5558
Location: USA
Unread post Re: Time format
Yea, it's a very easy conversion. If HH = 12 and AM/PM = AM, then set HH to 0 and convert like before. 10 second fix.

I do use HH:MM:SS to create a timestamp I call the "Tradewars Epoch" ... the seconds since Jan 1st, 2002. I use that to track enemy movements thru grid (CIM scans), fighits, etc. Since most people tend to grid in areas that aren't their base, I use that to further refine grid targeting.

I also use it on my red scripts to automatically clear busts in some cases.

Will it be a problem tho? No. It's a very easy fix.

_________________
May the unholy fires of corbomite ignite deep within the depths of your soul...

1. TWGS server @ twgs.navhaz.com
2. The NavHaz Junction - Tradewars 2002 Scripts, Resources and Downloads
3. Open IRC chat @ irc.freenode.net:6667 #twchan
4. Parrothead wrote: Jesus wouldn't Subspace Crawl.

*** SG memorial donations via paypal to: dpocky68@booinc.com
Image


Sun May 29, 2011 2:26 am
Profile ICQ WWW
Display posts from previous:  Sort by  
Reply to topic   [ 7 posts ] 

Who is online

Users browsing this forum: No registered users and 383 guests


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 post attachments in this forum

Search for:
Jump to:  
cron
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group.
Designed by wSTSoftware.