diff options
| author | 2020-02-05 10:15:57 +0000 | |
|---|---|---|
| committer | 2020-02-05 10:15:57 +0000 | |
| commit | 87bc9bab9e62b4b813a862191574ad7d9a4f485f (patch) | |
| tree | a7eded3f6b645515e93879ea900cb69ea4b9af71 /src/utils | |
| parent | !voice should target a nickname, not a user object (diff) | |
| signature | ||
is8601_format_now() -> iso8601_now()
Diffstat (limited to 'src/utils')
| -rw-r--r-- | src/utils/datetime/format.py | 2 |
1 files changed, 1 insertions, 1 deletions
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): |
