LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 7,247
Default Daylight Saving Time (DST) and calculating time difference.

The elapsed time between two time values are not affected by DST.

Dim StartTime As Date
Dim EndTime As Date
Dim ElapsedTime As Date
EndTime = TimeSerial(18, 0, 0) ' 6:00 PM
StartTime = TimeSerial(12, 0, 0) ' Noon
ElapsedTime = EndTime - StartTime ' 6 Hours
Debug.Print Format(ElapsedTime, "hh:mm:ss")


Where and in what way would DST possibly affect the calculation above?


--
Cordially,
Chip Pearson
Microsoft MVP - Excel
Pearson Software Consulting, LLC
www.cpearson.com
(email address is on the web site)


"Blue Knight" <Blue wrote in message
...
We use excel to track the number of hours / minutes from the placing of a
order and when it was complete. It appears that excel does not take in the
new US daylight saving time into affect when looking at elasped time or
time
range calculation.

Are there any patches being planned by microsoft specifically for excel or
access or sql for use with the new daylight saving time? (So that from
Noon
on Saturday to Noon on Sunday will count as 23 and not 24 hours)



 
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Calculating time difference jbly Excel Discussion (Misc queries) 14 August 15th 08 03:09 PM
Calculating Difference in Time (Amt. of Time Transpired) WOLLAM Excel Discussion (Misc queries) 4 June 27th 08 03:54 PM
calculating time difference Michel Khennafi Excel Worksheet Functions 1 January 31st 08 02:37 PM
calculating difference in time tam25 Excel Discussion (Misc queries) 4 September 7th 07 09:26 AM
Time difference calculations, daylight savings time, Excel Tim Excel Discussion (Misc queries) 1 December 28th 06 04:18 PM


All times are GMT +1. The time now is 08:33 PM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"