프로그래밍 언어에서는 day + 1 처럼 뭔가 연산식을 사용하게 되는데,
리눅스 서버에서는 통하지 않는다.
/bin/date +1 을 하게 되면 1
/bin/date +%Y.%m.%d+1 을 하게 되면 2010.01.21+1
로 출력된다.
date --date '1 days ago' 라고 하면 2010.01.20 으로 하루 전 날짜가 잘 표현된다.
뭔가 연산식이 아니라, 말로 표현된 명령어 옵션이라니.. 조금 당황;;
근데 1day ago 나 1days ago 나 같은 결과를 갖는다.
사람의 언어 문법을 몰라도 쓸 수 있도록 배려한 걸까^^
리눅스 서버에서는 통하지 않는다.
/bin/date +1 을 하게 되면 1
/bin/date +%Y.%m.%d+1 을 하게 되면 2010.01.21+1
로 출력된다.
date --date '1 days ago' 라고 하면 2010.01.20 으로 하루 전 날짜가 잘 표현된다.
뭔가 연산식이 아니라, 말로 표현된 명령어 옵션이라니.. 조금 당황;;
근데 1day ago 나 1days ago 나 같은 결과를 갖는다.
사람의 언어 문법을 몰라도 쓸 수 있도록 배려한 걸까^^




댓글을 달아 주세요
Because of life rhythm accelerated and working pressure increased so that people to pursue a <a href="http://www.usa-basketball-shoes.com/Amare-Stoudemire-shoes.html" >Amare Stoudemire shoes</a> relaxed, carefree mood in the spare time.They wont suffer trend while seeking a comfortable, natural new packing. Just introduce some websites for you about natural new packing you can go and see.