in reply to Re^2: Converting a date to a string and back
in thread Converting a date to a string and back

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.

  • Comment on Re^3: Converting a date to a string and back

Replies are listed 'Best First'.
Re^4: Converting a date to a string and back
by JonesyJones (Novice) on Jul 13, 2016 at 13:59 UTC
    Using an epoch time is a good idea. I need localtime for other things (log file suffices), so I will keep that around as you suggested.

    The epoch time in the file could be confusing to the support staff. I guess I could tell them to ignore it.

    Thanks for your help!