MCPcopy Index your code
hub / github.com/microsoft/qlib / _format_datetime

Method _format_datetime

scripts/dump_bin.py:144–146  ·  view source on GitHub ↗
(self, datetime_d: [str, pd.Timestamp])

Source from the content-addressed store, hash-verified

142 shutil.copytree(str(self.qlib_dir.resolve()), str(target_dir.resolve()))
143
144 def _format_datetime(self, datetime_d: [str, pd.Timestamp]):
145 datetime_d = pd.Timestamp(datetime_d)
146 return datetime_d.strftime(self.calendar_format)
147
148 def _get_date(
149 self, file_or_df: [Path, pd.DataFrame], *, is_begin_end: bool = False, as_set: bool = False

Callers 4

save_calendarsMethod · 0.95
_get_all_dateMethod · 0.45
_dump_instrumentsMethod · 0.45
_dump_featuresMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected