support millisecond precision timestamps

Allows a user to specify whether timestamps use milliseconds or seconds.  MySQL doesn't have support for millisecond-precision structured date-time objects, so it is necessary to use integer fields for millisecond precision.