View Single Post
  #5 (permalink)  
Old 08-01-2007, 03:51 PM
XerVision XerVision is offline
Junior Member
 
Join Date: May 2007
Posts: 31
Default Dates and Days

I am attempting to use Erel example in my code. Previously , I was using DateDayofYear- which means that my program would only run on aper year basis. (Lol)

So now I have questions about using the
Int((DATE-DATE)/cTicksPerDay)

Case1- I understand if the date is the first date is x and the second is x
then it returns -1 for days in between... that is cool

Case2- for x and x+1 it returns 0 days in between ... got it.

Case 3- for x and x+2 returns 1 day in between


Now what happens if the date captured is at 11:59pm one day and 12:00am the next ... will it return 0 or -1?


I am just trying to see if there are any quirks, I do know how to parse the ticks data.
Reply With Quote