문제

How would I get the current timezone in either Pharo or Amber Smalltalk?

(I’m also curious about how I would go about finding this information myself through inspecting the image somehow or however it’s typically done – huge Smalltalk newbie here.)

도움이 되었습니까?

해결책

Oh! I just learned how the object browser works and found this:

In Pharo:

DateAndTime localTimeZone. a TimeZone(LT-5:00)

In Amber:

Date new asTimeString. '11:55:25 GMT-0500 (EST)'

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top