dateformat 하루의 끝 구하기

Json·2022년 4월 1일
0

my_module

목록 보기
11/33

하루의 끝

now = datetime.datetime.now()

now = now.replace(hour=23, minute=59, second=59, microsecond=999999)

now = now.strftime("%Y-%m-%d %H:%M:%S")

0개의 댓글