diff options
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) |