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

'기타' 카테고리의 다른 글

CSAP (Cloud Security Assurance Program)  (0) 2024.03.25
NAT 환경에서 공인 아이피 확인 하는 방법  (0) 2024.01.16
Gatsby + S3 + cloudfront  (0) 2022.12.07