Allow setting date and time format.

This is done by setting the LP_TIME_FORMAT variable to the desired format string, according to the
format accepted by strftime(3).
Ref #281