c7e06205b7
flow now uses daemon thread for displaying output
11 lines
274 B
Python
11 lines
274 B
Python
import math, time
|
|
def get_rounded_epoch(roundS=60):
|
|
'''
|
|
Returns the epoch, rounded down to given seconds (Default 60)
|
|
'''
|
|
epoch = get_epoch()
|
|
return epoch - (epoch % roundS)
|
|
|
|
def get_epoch():
|
|
'''returns epoch'''
|
|
return math.floor(time.time()) |