From 87bc9bab9e62b4b813a862191574ad7d9a4f485f Mon Sep 17 00:00:00 2001 From: jesopo Date: Wed, 5 Feb 2020 10:15:57 +0000 Subject: [PATCH] is8601_format_now() -> iso8601_now() --- src/utils/datetime/format.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/utils/datetime/format.py b/src/utils/datetime/format.py index feefde82..acee5f6d 100644 --- a/src/utils/datetime/format.py +++ b/src/utils/datetime/format.py @@ -13,7 +13,7 @@ def iso8601(dt: _datetime.datetime, timespec: TimeSpec=TimeSpec.NORMAL ms_format = ".%s" % str(int(dt.microsecond/1000)).zfill(3) return "%s%s%s" % (dt_format, ms_format, tz_format) -def iso8601_format_now(timespec: TimeSpec=TimeSpec.NORMAL) -> str: +def iso8601_now(timespec: TimeSpec=TimeSpec.NORMAL) -> str: return iso8601(utcnow(), timespec) def datetime_human(dt: _datetime.datetime, timespec: TimeSpec=TimeSpec.NORMAL):