티스토리 뷰
728x90
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.digitalocean.com
https://github.com/kiorky/croniter/blob/master/src/croniter/croniter.py
GitHub - kiorky/croniter
Contribute to kiorky/croniter development by creating an account on GitHub.
github.com
https://stackoverflow.com/questions/4610904/calculate-next-scheduled-time-based-on-cron-spec
Calculate next scheduled time based on cron spec
What's an efficient way to calculate the next run time of an event given the current time and a cron spec? I'm looking for something other than "loop through every minute checking if it matches sp...
stackoverflow.com
728x90
'공부' 카테고리의 다른 글
댓글
250x250
공지사항
최근에 올라온 글
최근에 달린 댓글
- Total
- Today
- Yesterday
TAG
- wlw
- 테슬라 레퍼럴 적용 확인
- 유투브
- 테슬라
- 레퍼럴
- 테슬라 레퍼럴 코드 확인
- Bot
- 테슬라 리퍼럴 코드
- 테슬라 레퍼럴
- 테슬라 리퍼럴 코드 혜택
- 테슬라 크레딧 사용
- 김달
- 개리마커스
- COUNT
- 클루지
- 메디파크 내과 전문의 의학박사 김영수
- 연애학개론
- follower
- Kluge
- 모델y
- 인스타그램
- 책그림
- 어떻게 능력을 보여줄 것인가?
- 테슬라 리퍼럴 코드 생성
- 팔로워 수 세기
- 테슬라 추천
- 할인
- 모델 Y 레퍼럴
일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
1 | ||||||
2 | 3 | 4 | 5 | 6 | 7 | 8 |
9 | 10 | 11 | 12 | 13 | 14 | 15 |
16 | 17 | 18 | 19 | 20 | 21 | 22 |
23 | 24 | 25 | 26 | 27 | 28 |
글 보관함