generated from nhcarrigan/template
6184801fed
CI / dependency-pin-check-typescript (pull_request) Failing after 4s
CI / typescript (pull_request) Has been skipped
CI / dependency-pin-check-python (pull_request) Failing after 4s
CI / python (pull_request) Has been skipped
Security Scan and Upload / Security & DefectDojo Upload (pull_request) Successful in 1m23s
25 lines
726 B
Python
25 lines
726 B
Python
from datetime import datetime, timedelta
|
|
import json
|
|
|
|
# Generate hourly time slots from Feb 1 to March 3, 2026
|
|
# 24 hours a day, America/Los_Angeles timezone
|
|
start_date = datetime(2026, 2, 1, 0, 0) # Feb 1, 2026, midnight
|
|
end_date = datetime(2026, 3, 3, 23, 0) # March 3, 2026, 11pm
|
|
|
|
times = []
|
|
current = start_date
|
|
while current <= end_date:
|
|
# Format: YYYY-MM-DDTHH:MM
|
|
times.append(current.strftime("%Y-%m-%dT%H:%M"))
|
|
current += timedelta(hours=1)
|
|
|
|
print(f"Generated {len(times)} time slots")
|
|
print(f"First: {times[0]}")
|
|
print(f"Last: {times[-1]}")
|
|
|
|
# Save to file for use
|
|
with open('/home/naomi/docs/cohort/crabfit_timeslots.json', 'w') as f:
|
|
json.dump(times, f)
|
|
|
|
print("Saved to crabfit_timeslots.json")
|