Good day all … Merry X-mas and Happy new year..
If anybody can help me here,,, I have a system that generates various information with time stamps. The time stamps formatted as text and it’s DD/HHMM, HHMM is in 24 hours format. (I.e. 12/1545 that is quarter to four on the 12th of the month).
I want to do some further time calculation. For example, I want to add and subtract times and dates, calculate elapsed time, add and subtract minutes to or from times. The following are some examples of what I want to do:
-Elapsed time (results can be positive or negative values)
31/2230 - 31/2220 = 10 (minutes)
31/2230 - 31/2240 = -10 (minutes)
01/0010- 30/2350 = 20 (minutes)
01/0605- 01/0555 = 10 (minutes)
01/1005- 01/1020 = -15 (minutes)
-I’m also looking to subtract minutes for the DATE/TIME as per the following examples:
01/0540 – 30 (minutes) =01/0510
01/0010 – 20 = 30/2350
10/0020 – 30 = 09/2350
01/0509 – 9 = 01/0500
It’s quite important to have all outputs in text or general formats as these outputs will be used somewhere else… thanks very much for any help
Bookmarks