I am trying to run a specific function every day at 18:00, I wrote the folwing code to do that but it did nothing
    today = datetime.today()
    nextDay = (today + timedelta(days=1)).replace(hour=18, minute=0, second=0)
    delta_time = nextDay - today
    secs = delta_time.seconds + 1
    timer = Timer(secs, self.send_officer_report(".send officer report --ad " + today.strftime("%Y/%m/%d"), today.strftime("%Y/%m/%d")))
    timer.start()
I do not want to use cron, I want my script to be OS independent
 
    