geotau3

how can get different between to time entry

4 posts in this topic

how can get different between to time entry 

either by mill second or by second  

Share this post


Link to post
Share on other sites



The simplest way I can think to do this is change both values to ticks and simply subtract one from the other.

 

Example:

func _ticksDifference($time)
$timeA = $time
$timeB = _Date_Time_GetTickCount()

Return $timeB - $timeA
endfunc

 

Share this post


Link to post
Share on other sites

no it will not work 

like the entry 9:30 AM and 9:55 AM 

or 3:55 PM and 9:30 AM  

Share this post


Link to post
Share on other sites

Look at _DateDiff(), but you need to get rid of the AM/PM part and recalculate that back to a 24 time in the format HH:MM

Jos


Visit the SciTE4AutoIt3 Download page for the latest versions  - Beta files                                How to post scriptsource        Forum Rules
 
Live for the present,
Dream of the future,
Learn from the past.
  :)

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!


Register a new account

Sign in

Already have an account? Sign in here.


Sign In Now