diff options
author | Frederick Yin <fkfd@fkfd.me> | 2021-10-27 20:50:47 +0800 |
---|---|---|
committer | Frederick Yin <fkfd@fkfd.me> | 2021-10-27 20:50:47 +0800 |
commit | 328e7891bbdcb4c869112fa44438d8da5ea1ce5e (patch) | |
tree | c459af04a16f7677836cff2afd18127e1f817bb3 /jimbrella/utils.py | |
parent | 00e4e6ecc80f8e3654bd176ec7067ab35b55d6f6 (diff) |
Refactor: separate CSV table into new module
Database is now subclass of CsvTable
Diffstat (limited to 'jimbrella/utils.py')
-rw-r--r-- | jimbrella/utils.py | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/jimbrella/utils.py b/jimbrella/utils.py index cac8bc9..ce57bf9 100644 --- a/jimbrella/utils.py +++ b/jimbrella/utils.py @@ -1,5 +1,8 @@ from datetime import datetime, timedelta, tzinfo +# identity function +identity = lambda x: x + def human_datetime(time: datetime) -> str: return "{:%Y-%m-%d %H:%M:%S}".format(time) |