프로그래밍 언어에서는 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 나 같은 결과를 갖는다.

사람의 언어 문법을 몰라도 쓸 수 있도록 배려한 걸까^^
2010/01/21 19:09 2010/01/21 19:09
Posted by freeism

트랙백 주소 :: http://www.freeism.co.kr/tc/trackback/655

댓글을 달아 주세요

  1. air jordan 17 2010/07/15 15:30  댓글주소  수정/삭제  댓글쓰기

    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.

이전페이지 1 ... 6 7 8 9 10 11 12 13 14 ... 179 다음페이지
사이드바 열기