I use a process that converts fixed date and time data to total seconds on the time factor only.
The date from the data import is not required.
It uses the 24 hour clock format.
So if data in a cell shows: 25:MAY:2013:10:10:00AM, when it’s split, only the 10:10AM portion is required. This time info is fixed.
This will equate to 36,600 seconds ( past midnight )
The next cell may show 25:MAY:2013:15:38:10
This is the actual computer clock time. This time gets updated with every Do Until Loop.
When calculated it will show 56,280 minutes + 10 seconds = 56,290 total seconds past midnight.
———,
My next formula is subtract 36,600 – 56,290 +(1800) = -17,880
In this case it is a minus sum. It is this Sum I hope to use to trigger a series of macros
The 1800 Seconds is Time zone adjustments
——-,
The following is not essential to trigger the macro, but I’m trying to get the total seconds ( 17,880 back into a read-able look to make other decisions.
When I divide the Total, 17,880.00/60 = 298 minutes
Then divide 298/60 = 4.97
The question is, how do I formulate 4.97 to show the exact hour and minutes PAST 10.10AM when the computer time is 15:38:10 pm ?
I am hoping to achieve -5 Hrs 37 Mins , or whatever the case may be
And,
If it’s before 10:10 am and the computer clock shows 9AM, (32400 seconds), then it’s
36,600 – 32400 + (1800) = 6000 seconds,
6000/60 = 100 minutes ? That can’t be right either, it’s obviously 70 minutes for due time.
Thanks,