labm8.time

Time utilities.

labm8.time.now()

Get the current datetime.

labm8.time.nowstr(format='%Y-%m-%d %H:%M:%S')

Convenience wrapper to get the current time as a string.

Equivalent to invoking strfmt(now()).

labm8.time.strfmt(datetime, format='%Y-%m-%d %H:%M:%S')

Format date to string.