[squeak-dev] The Trunk: System-mt.1345.mcz
commits at source.squeak.org
commits at source.squeak.org
Fri Apr 22 07:37:14 UTC 2022
Marcel Taeumel uploaded a new version of System to project The Trunk:
http://source.squeak.org/trunk/System-mt.1345.mcz
==================== Summary ====================
Name: System-mt.1345
Author: mt
Time: 22 April 2022, 9:37:12.260005 am
UUID: 4fe85d79-a84e-584f-be76-d1c2741d32f2
Ancestors: System-mt.1344
Add #local extension to TimeZone via Locale plugin.
=============== Diff against System-mt.1344 ===============
Item was added:
+ ----- Method: Locale>>isDST (in category 'accessing - queries') -----
+ isDST
+
+ ^ self primDST!
Item was added:
+ ----- Method: TimeZone class>>local (in category '*System-Localization') -----
+ local
+
+ | offset |
+ offset := Locale current offsetLocalToUTC minutes.
+ ^ (Locale current isDST
+ ifTrue: [self timeZonesDST]
+ ifFalse: [self timeZones])
+ detect: [:tz | tz offset = offset]
+ ifNone: [
+ TimeZone
+ offset: offset
+ name: 'Local Time'
+ abbreviation: 'LOCAL']!
More information about the Squeak-dev
mailing list
|