Skip to content

Commit

Permalink
Merge branch 'main' into support/3.2
Browse files Browse the repository at this point in the history
  • Loading branch information
dsuch committed Dec 20, 2024
2 parents 6bf3a64 + d4abf82 commit f3f2e6a
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
2 changes: 1 addition & 1 deletion code/requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ decorator==5.1.0
dictalchemy==0.1.2.6
dill==0.2.5
distro==1.5.0
Django==4.2.16
Django==4.2.17
django-csp==3.8
docformatter==0.8
dropbox==10.10.0
Expand Down
7 changes: 6 additions & 1 deletion code/zato-common/src/zato/common/util/time_.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@

# stdlib
from datetime import datetime, timedelta, timezone
from time import time
from time import time, time_ns
import logging

# Arrow
Expand Down Expand Up @@ -84,6 +84,11 @@ def utcnow_as_ms(_time=time):

# ################################################################################################################################

def utcnow_from_ns():
return time_ns() // 1_000_000

# ################################################################################################################################

def datetime_from_ms(ms:'float', isoformat:'bool'=True) -> 'str | datetime':
""" Converts a number of milliseconds since UNIX epoch to a datetime object.
"""
Expand Down

0 comments on commit f3f2e6a

Please sign in to comment.