3

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.)

4

1 回答 1

5

哦!我刚刚了解了对象浏览器的工作原理并发现了这一点:

在法罗:

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

在琥珀中:

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

于 2013-11-30T16:52:35.410 回答