GnuSmalltalkUsersGuide:AdditionalChapter5 20

From 흡혈양파의 번역工房
Jump to navigation Jump to search
The printable version is no longer supported and may have rendering errors. Please update your browser bookmarks and please use the default browser print function instead.
I18N.LcTime

I18N.LcTime

네임스페이스 I18N에 정의됨

슈퍼클래스: I18N.LcPrintFormats

범주: i18n-인쇄


#?, #printString:, #print:on: 중 하나를 전송하면 주어진 지역에서 사용되는 규칙에 따라 Date 혹은 Time을 String으로 변환한다.


I18N.LcTime 클래스: 접근하기

category

기본 로케일을 결정하는 데 사용되는 환경 변수를 응답하라.

selector

Locale 객체로 전송 시 수신자에게 접근하는 선택자를 응답하라.


I18N.LcTime: 인쇄하기

print: aDateOrTimeOrArray on: aStream

수신자의 포맷팅 규칙에 따라 aDateOrtimeOrArray를 aStream 상에 인쇄하라. Date, Time, DateTime, 또는 Date과 Time으로 이루어진 배열이 될 수도 있다.

print: aDateOrTimeOrArray on: aStream ifFull: fullFmt ifDate: dateFmt ifTime: timeFmt

수신자의 포맷팅 규칙에 따라 aDateOrTimeOrArray를 aStream 상에 인쇄하라. Date, Time, DateTime, 또는 Date과 Time으로 이루어진 배열이 될 수도 있다: Date는 dateFmt로 인쇄되고 Time은 timeFmt로 인쇄되는 반면 다른 사례에서는 fullFmt가 사용된다. 포맷팅 코드에 관한 정보는 #print:time:format:on:를 참조하라.

print: aDate time: aTime format: aString on: aStream

명시된 일자와 시간을 수신자의 포맷팅 규칙에 따라 주어진 포맷을 이용하여 aStream 상에 인쇄하라. 이용 가능한 축약어는 C 함수 strftime이 사용하는 것과 동일하다: abbreviated weekday (%a) weekday (%A) abbreviated month (%b) month (%B) date & time (%c) century (%C) day of the month (%d) date (US) (%D) day of the month (%e) year for the ISO week (%g) year for the ISO week (%G) abbreviated month (%h) hours (%H) hours (AM/PM) (%I) day of the year (%j) hours (%k) hours (AM/PM) (%l) month (%m) minutes (%M) AM/PM (%p) lowercase AM/PM (%P) AM/PM time (%r) time (US) (%R) time t (%s) seconds (%S) time (US) (%T) day of the week (%u) week number starting at Sun (%U) week number starting at Thu (%V) day of the week, Sunday=0 (%w) week number starting at Mon (%W) date (%x) time (%X) year (2- digits) (%y) year (4-digits) (%Y).


I18N.LcTime: 검사

allFormatsExample

가능한 모든 포맷을 포함하는 긴 문자열을 응답하라.


Notes