bleh
This commit is contained in:
parent
2f89442b68
commit
749fab6327
@ -1,3 +1,7 @@
|
|||||||
from datetime import datetime, date, time
|
from datetime import datetime, date, time
|
||||||
|
|
||||||
print(datetime.now())
|
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)
|
Loading…
Reference in New Issue
Block a user