전체 글 (116) 썸네일형 리스트형 Python _ 날짜 SETTING, 주차의 첫번째 또는 마지막 날짜 # 날짜 기준 SETTING 2)금주 주차의 마지막 날짜 import datetime d = '2024-W1' #금주 주차 입력 end_of_thisweek = datetime.datetime.strptime(d + '-1', '%G-W%V-%u') + datetime.timedelta(days=6) end_of_thisweek # 날짜 기준 SETTING 3)점검 시작 주차의 첫번째 날짜(date) f = '2023-W20' #점검 시작 주(최초 setting 후 변동 없음) firstdate_ofthisseason = datetime.datetime.strptime(f + '-1', '%G-W%V-%u') firstdate_ofthisseason Python _ 이번주 주차 검색 / 설정 (오늘 날짜, 날짜 설정) # 날짜 기준 SETTING 1)오늘 기준 날짜 import datetime thisweek = datetime.date.today().isocalendar()[1] #금주 주차 thisyear = datetime.date.today().isocalendar()[0] #오늘 년도 #start_of_week = my_dt_trunc - timedelta(days = my_dt_trunc.weekday()) today = datetime.date.today() #오늘 날짜 thisweek 파이썬_캐글 Kaggle Grocery Store Sales Forecast 백화점 판매예측#1 230830_sales /*----------------------------------------------------------------------------- | Copyright (c) Jupyter Development Team. | Distributed under the terms of the Modified BSD License. |----------------------------------------------------------------------------*/ /* * Mozilla scrollbar styling */ /* use standard opaque scrollbars for most nodes */ [data-jp-theme-scrollbars='true'] { sc.. 이전 1 2 3 4 ··· 39 다음