diff options
author | Frederick Yin <fkfd@fkfd.me> | 2021-10-24 23:04:58 +0800 |
---|---|---|
committer | Frederick Yin <fkfd@fkfd.me> | 2021-10-24 23:04:58 +0800 |
commit | ddaa0b2c7a9a7bae2c70ef060271fa10bef59c59 (patch) | |
tree | 39e822bc791696b33b5609e020207f5795972b24 /jimbrella/utils.py | |
parent | 8a9e80d9a2d823c90ccbbdbca268e6c65a8ac31b (diff) |
One major, multiple minor changes to Database
Major:
- New update(umb) method as an interface to _update(umb), with
convenience and safeguards.
Minor:
- New exception: UmbrellaValueError
- All datetime objects are cast naive
- Database._write(umbrellas) raises exception after performing recovery
- human_datetime includes seconds in output
Diffstat (limited to 'jimbrella/utils.py')
-rw-r--r-- | jimbrella/utils.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/jimbrella/utils.py b/jimbrella/utils.py index f57f8fb..cac8bc9 100644 --- a/jimbrella/utils.py +++ b/jimbrella/utils.py @@ -2,7 +2,7 @@ from datetime import datetime, timedelta, tzinfo def human_datetime(time: datetime) -> str: - return "{:%Y-%m-%d %H:%M}".format(time) + return "{:%Y-%m-%d %H:%M:%S}".format(time) def human_timedelta(delta: timedelta) -> str: |