Thanks for this code - that makes it all a good deal clearer. So, if all you are after is the time difference in seconds, why not just use epoch times throughout? You could even save both the epoch time and the localtime-as-string in the file if you want the file times to be easily understood by a non-machine reader.
In reply to Re^3: Converting a date to a string and back
by hippo
in thread Converting a date to a string and back
by JonesyJones
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |