Skip to content

Commit

Permalink
Added comment for method that will need to be refactored
Browse files Browse the repository at this point in the history
  • Loading branch information
DinisCruz committed Dec 11, 2023
1 parent a27834a commit a71adff
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion osbot_utils/utils/Misc.py
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,9 @@ def date_now(use_utc=True, return_str=True):

def date_time_now(use_utc=True, return_str=True, milliseconds_numbers=0, date_time_format='%Y-%m-%d %H:%M:%S.%f'):
if use_utc:
value = datetime.utcnow()
value = datetime.utcnow() # todo: this has been marked for depreciation in python 11
# value = datetime.now(UTC) # but this doesn't seem to work in python 10.x : E ImportError: cannot import name 'UTC' from 'datetime' (/Library/Frameworks/Python.framework/Versions/3.10/lib/python3.10/datetime.py)

else:
value = datetime.now()
if return_str:
Expand Down

0 comments on commit a71adff

Please sign in to comment.