Simplify timestamp conversion to reuse the existing date and time conversions.
Simplify timestamp conversion to reuse the existing date and time conversions.

barryp/py-bpgsql,d33tah/bpgsql,olopez32/py-bpgsql