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

Function get_timestamp_start

data/amazon18_data_process.py:58–60  ·  view source on GitHub ↗

Get timestamp for the start of a given year and month

(year, month)

Source from the content-addressed store, hash-verified

56
57
58def get_timestamp_start(year, month):
59 """Get timestamp for the start of a given year and month"""
60 return int(datetime.datetime(year=year, month=month, day=1, hour=0, minute=0, second=0, microsecond=0).timestamp())
61
62
63def load_metadata_json2csv_style(category, metadata_file=None):

Callers 2

Calls

no outgoing calls

Tested by

no test coverage detected