utils.round_datetime_to_ms()

Round a datetime object to nearest millisecond.

Usage

Source

utils.round_datetime_to_ms(dt)