a webcam with a 5 second, 30 minute, or 24 hour delay
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
mirror-to-yesterday/datetimes.py

7 lines
243 B

from datetime import datetime, date, time
print(datetime.now())
def five_minute_segment_from(the_time, actually_do_five_seconds=False):
minute = the_time.replace(second=0, microsecond=0)
return minute.replace(minute=(minute.minute // 5)*5)