[python] croniter
import croniter from datetime import datetime s = "2022-09-19 00:00:00" d = datetime.strptime(s, '%Y-%m-%d %H:%M:%S') print(d) cron = croniter.croniter("* * * * *", d) print(cron.get_prev(datetime)) print(cron.get_next(datetime)) https://www.digitalocean.com/community/tutorials/python-string-to-datetime-strptime How To Convert a String to a datetime or time Object in Python | DigitalOcean www.di..
공부
2023. 1. 16. 20:19
728x90
728x90