Skip to content

Commit

Permalink
update on generic functions
Browse files Browse the repository at this point in the history
  • Loading branch information
“XYangXRay” committed May 9, 2024
1 parent 19d27f2 commit 4890e3b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions pyCHX/chx_generic_functions.py
Original file line number Diff line number Diff line change
Expand Up @@ -895,7 +895,7 @@ def get_current_time():
"""get current time in a fomart of year/month/date/hour(24)/min/sec/,
e.g. 2009-01-05 22:14:39
"""
loc_dt = datetime.datetime.now(pytz.timezone("US/Eastern"))
loc_dt = datetime.now(pytz.timezone("US/Eastern"))
fmt = "%Y-%m-%d %H:%M:%S"
return loc_dt.strftime(fmt)

Expand Down Expand Up @@ -4939,7 +4939,7 @@ def trans_tf_to_td(tf, dtype="dframe"):
ind = tf.index
else:
ind = range(len(tf))
td = np.array([datetime.datetime.fromtimestamp(tf[i]) for i in ind])
td = np.array([datetime.fromtimestamp(tf[i]) for i in ind])
return td


Expand Down

0 comments on commit 4890e3b

Please sign in to comment.