navigation
a webmaster learning community
     Home    Register     Search      Help      Login    
Sponsors

Shopping Cart Software
Ecommerce software integrated into Frontpage, Dreamweaver and Golive templates. No monthly fees and available in ASP and PHP versions.

Website Templates
We also have a wide selection of Dreamweaver, Expression Web and Frontpage templates as well as webmaster tools and CSS layouts.

Frontpage website templates
Creative Website Templates for FrontPage, Dreamweaver, Flash, SwishMax

Search Forums
 

Advanced search
Recent Posts

 Todays Posts
 Most Active posts
 Posts since last visit
 My Recent Posts
 Mark posts read

Microsoft MVP

 

Military Time

 
View related threads: (in this forum | in all forums)

Logged in as: Guest
Users viewing this topic: none
Printable Version 

All Forums >> Web Development >> ASP and Database >> Military Time
Page: [1]
 
rickyzicky

 

Posts: 208
From: roch, ny
Status: offline

 
Military Time - 12/6/2001 3:20:58   

What is the best way to calculate time using military time.

I need to calculate time spent.
Though it is easy to calculate time spent if the hour started was 1600 hours and time ended was 1800 hours.

But how do I tackle the problem when the hour started is 2300 and the hour ended was 0100 hours. I need this to calsulate to 2hours. Once we are past 2400 it gets tougher (at least for me).

Any ideas ?
rdouglass

 

Posts: 9265
From: Biddeford, ME USA
Status: offline

 
RE: Military Time - 12/6/2001 8:24:56   
I think it depends on how you're storing your time values.

If I was doing it I would calculate the diff between time AND date like:

Set a variable ie. myTime
Subtract dates.
myTime = results multiplied by 24.
Subtract times.
Add to myTime
Format myTime and season to taste....


Does this make sense???

 

(in reply to rickyzicky)
Spooky

 

Posts: 26603
Joined: 11/11/1998
From: Middle Earth
Status: offline

 
RE: Military Time - 12/8/2001 1:18:50   
Heres some datae related stuff :

http://msdn.microsoft.com/scripting/vbscript/doc/vbstoc.htm

http://www.aspfaqs.com/aspfaqs/ShowCategory.asp?CatID=3

§þððk¥
Database / DRW Q & A
VP-ASP Shopping cart

(in reply to rickyzicky)
Page:   [1]

All Forums >> Web Development >> ASP and Database >> Military Time
Page: [1]
Jump to: 1





New Messages No New Messages
Hot Topic w/ New Messages Hot Topic w/o New Messages
Locked w/ New Messages Locked w/o New Messages
 Post New Thread
 Reply to Message
 Post New Poll
 Submit Vote
 Delete My Own Post
 Delete My Own Thread
 Rate Posts