1.0
This commit is contained in:
8
random_time.py
Normal file
8
random_time.py
Normal file
@@ -0,0 +1,8 @@
|
||||
import datetime
|
||||
import random
|
||||
|
||||
def time_simulate(now_time):
|
||||
delta_second_number = random.randint(1, 10)
|
||||
delta_second = datetime.timedelta(seconds=delta_second_number)
|
||||
now_time = now_time + delta_second
|
||||
return now_time
|
||||
Reference in New Issue
Block a user