mac에서 날짜 계산하기 (gdate)

2024. 4. 4. 16:32기타

728x90
SMALL
  • 개요
mac에서는 date 명령어가 gdate로 사용된다.

 

  • 설치
brew install coreutils

 

  • 날짜 계산 (현재 기준 180일 전)
gdate --date "180 days ago" +"%Y%m%d"

 

  • 날짜 계산 (현재 기준 180일 후)
gdate --date "180 days" +"%Y%m%d"

 

 

728x90
LIST