2011-04-07 4 views
0

MacOSX bash 환경에서 date 명령의 출력을 어떻게 현지화 할 수 있습니까? 예를 들어 , 나는 ru_RU 로케일에 다음과 같은 지역화하려는 :`date` 명령에 대한 지역화 출력

$ date +"%d %B %Y" 
07 April 2011 
+0

(HTTP [기계 기본 이외의 로켈을 사용하여 "날짜"강제]의 사용 가능한 복제 : //stackoverflow.com/questions/12896509/forcing-date-to-use-a-locale-other-than-the-machine-default) –

답변

1

당신이 시도 할 수?

내가 ru_RU가 설치되지 않은
LC_ALL=ru_RU date +"%d %B %Y" 
+0

감사합니다. – user478681

0

, 그래서 나는 드/우리와 함께 그것을 보여

env LC_ALL=en_US.utf8 date +"%d %B %Y" -d +2months 
> 07 June 2011 
env LC_ALL=de_DE.utf8 date +"%d %B %Y" -d +2months 
> 07 Juni 2011 
관련 문제