MCPcopy Create free account
hub / github.com/chinesehuazhou/python-weekly / get_date_range

Function get_date_range

resources/weekly_collection.py:99–103  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

97
98
99def get_date_range():
100 today = datetime.now()
101 seven_days_ago = today - timedelta(days=6)
102 result = f"{seven_days_ago.strftime('%Y.%m.%d')} - {today.strftime('%Y.%m.%d')}"
103 return result
104
105
106def set_header():

Callers 1

set_headerFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected