MCPcopy Create free account
hub / github.com/AkaliKong/MiniOneRec / get_timestamp_start

Function get_timestamp_start

data/amazon23_data_process.py:36–38  ·  view source on GitHub ↗

Return epoch seconds for start of a month.

(year, month)

Source from the content-addressed store, hash-verified

34 f.write(f"{original}\t{mapped}\n")
35
36def get_timestamp_start(year, month):
37 """Return epoch seconds for start of a month."""
38 return int(datetime.datetime(year, month, 1).timestamp())
39
40
41def convert_ms_to_sec(ts_ms):

Callers 1

mainFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected