This commit is contained in:
Shoofle 2024-07-27 21:44:50 -04:00
parent 2f89442b68
commit 749fab6327
2 changed files with 6 additions and 1 deletions

View File

@ -1,3 +1,7 @@
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)

1
readme.md Normal file
View File

@ -0,0 +1 @@
run it in python3 after `pipenv install opencv-python`