MCPcopy
hub / github.com/zvtvz/zvt / now_pd_timestamp

Function now_pd_timestamp

src/zvt/utils/time_utils.py:70–74  ·  view source on GitHub ↗
(tz=None)

Source from the content-addressed store, hash-verified

68
69
70def now_pd_timestamp(tz=None) -> pd.Timestamp:
71 if tz:
72 return pd.Timestamp(arrow.now(tz=tz).datetime)
73 else:
74 return pd.Timestamp.now()
75
76
77def current_date(tz=None) -> pd.Timestamp:

Callers 15

__init__Method · 0.90
move_onMethod · 0.90
in_real_trading_timeMethod · 0.90
before_trading_timeMethod · 0.90
after_trading_timeMethod · 0.90
in_trading_timeMethod · 0.90
get_stocksMethod · 0.90
__init__Method · 0.90
runMethod · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected