LocalTime

The LocalTime function of the mplreport class converts a naive DateTime object from UTC time to local time.

The UTCTime function performs the opposite.

Parameters
ParameterTypeDefaultMeaning
tmDateTimeThe UTC time to be converted
Return

A naive DateTime object, converted to the local timezone.