TRQ-2776. Make some of the calls strtoll instead of strtol.

Some of the time fields are potentially longer than a long.