[Pkg] The Trunk: System-bf.233.mcz

commits at source.squeak.org commits at source.squeak.org
Fri Jan 15 11:53:58 UTC 2010


Bert Freudenberg uploaded a new version of System to project The Trunk:
http://source.squeak.org/trunk/System-bf.233.mcz

==================== Summary ====================

Name: System-bf.233
Author: bf
Time: 15 January 2010, 12:52:59.604 pm
UUID: 592ac8fc-ab17-46f4-8ec2-53df6e76465c
Ancestors: System-dtl.232

- set local timezone offset on startup from LocalePlugin
- provide various default values in case LocalePlugin is absent

=============== Diff against System-dtl.232 ===============

Item was changed:
  ----- Method: Locale>>primLanguage (in category 'system primitives') -----
  primLanguage
  	"returns string with language tag according to ISO 639"
  	<primitive:'primitiveLanguage' module: 'LocalePlugin'>
+ 	^'en'
+ 
+ !
- 	^nil!

Item was changed:
  ----- Method: Locale class>>startUp: (in category 'system startUp') -----
  startUp: resuming
  	| newID |
  	resuming ifFalse: [^self].
+ 	DateAndTime localTimeZone: (TimeZone
+ 		offset:  (Duration minutes: self current offsetLocalToUTC)
+ 		name: 'Local Time'
+ 		abbreviation: 'LT').
  	(Preferences valueOfFlag: #useLocale)
  		ifTrue: [
  			newID := self current determineLocaleID.
  			newID ~= LocaleID current
  				ifTrue: [self switchToID: newID]]!

Item was changed:
  ----- Method: Locale>>primShortDateFormat (in category 'system primitives') -----
  primShortDateFormat
  	"Returns the short date format
  	d day, m month, y year,
  	double symbol is null padded, single not padded (m=6, mm=06)
  	dddd weekday
  	mmmm month name"
  	<primitive:'primitiveShortDateFormat' module: 'LocalePlugin'>
+ 	^'m/d/yy'!
- !

Item was changed:
  ----- Method: Locale>>primTimeFormat (in category 'system primitives') -----
  primTimeFormat
  	"Returns string time format
  	Format is made up of 
  	h hour (h 12, H 24), m minute, s seconds, x (am/pm String)
  	double symbol is null padded, single not padded (h=6, hh=06)"
  	<primitive:'primitiveTimeFormat' module: 'LocalePlugin'>
+ 	^'h:mmx'!
- 
- !

Item was added:
+ ----- Method: Locale>>offsetLocalToUTC (in category 'accessing') -----
+ offsetLocalToUTC
+ 	^self primTimezone!

Item was changed:
  ----- Method: Locale>>primCountry (in category 'system primitives') -----
  primCountry
  	"Returns string with country tag according to ISO 639"
  	<primitive: 'primitiveCountry' module: 'LocalePlugin'>
+ 	^'US'!
- 	^nil!

Item was changed:
  ----- Method: Locale>>primTimezone (in category 'system primitives') -----
  primTimezone
  	"The offset from UTC in minutes, with positive offsets being towards the east.
+ 	(San Francisco is in UTC -07*60 and Paris is in UTC +02*60 when daylight savings is in effect)."
- 	(San Francisco is in UTC -08*60 and Paris is in GMT +01*60 (daylight savings is not in effect)."
  	<primitive:'primitiveTimezoneOffset' module: 'LocalePlugin'>
  	^0!

Item was changed:
  ----- Method: Locale>>primLongDateFormat (in category 'system primitives') -----
  primLongDateFormat
  	"Returns the long date format
  	d day, m month, y year,
  	double symbol is null padded, single not padded (m=6, mm=06)
  	dddd weekday
  	mmmm month name"
  	<primitive:'primitiveLongDateFormat' module: 'LocalePlugin'>
+ 	^'dddd, mmmm d, yyyy'!
- !



More information about the Packages mailing list