[squeak-dev] The Inbox: Kernel-cmm.671.mcz

commits at source.squeak.org commits at source.squeak.org
Fri Feb 10 22:59:27 UTC 2012


A new version of Kernel was added to project The Inbox:
http://source.squeak.org/inbox/Kernel-cmm.671.mcz

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

Name: Kernel-cmm.671
Author: cmm
Time: 10 February 2012, 4:58:49.106 pm
UUID: 9c0e18ac-1c8f-4ae6-b39e-d487720e8580
Ancestors: Kernel-cmm.670

Decided against the localized vs. globalized mode.  Timespans created in the context of an offset will start in that offset.  When no context is available, the defaultOffset for Timespans must be zero.  For example, two ways to make a Date for today:
	Date today.  'start is midnight at offset zero.  Will compare successfully to other Date today results.'
	DateAndTime now asDate.  'In this case, the start is midnight of the local time-zone.  It can only compare equally to Dates of its time-zone.'

=============== Diff against Kernel-cmm.670 ===============

Item was changed:
  Magnitude subclass: #Timespan
  	instanceVariableNames: 'start duration'
  	classVariableNames: ''
  	poolDictionaries: ''
  	category: 'Kernel-Chronology'!
- Timespan class
- 	instanceVariableNames: 'defaultOffset'!
  
  !Timespan commentStamp: 'dtl 7/11/2009 16:35' prior: 0!
  I represent a duration starting on a specific DateAndTime.!
- Timespan class
- 	instanceVariableNames: 'defaultOffset'!

Item was changed:
  ----- Method: Timespan class>>defaultOffset (in category 'configuring') -----
  defaultOffset
+ 	"Timespans created in the context of an offset will start in that offset.  When no context is available, the defaultOffset for Timespans must be zero.  For example, two ways to make a Date for today:
+ 	Date today.  'start is midnight at offset zero.  Will compare successfully to other Date today results.'
+ 	DateAndTime now asDate.  'In this case, the start is midnight of the local time-zone.  It can only compare equally to Dates of its time-zone.'"
+ 	^ Duration zero!
- 	^ defaultOffset!

Item was removed:
- ----- Method: Timespan class>>globalize (in category 'configuring') -----
- globalize
- 	"By default, Timespans will be created with a local timezone's offset."
- 	defaultOffset := Duration zero!

Item was removed:
- ----- Method: Timespan class>>initialize (in category 'initialize-release') -----
- initialize
- 	self globalize!

Item was removed:
- ----- Method: Timespan class>>localize (in category 'configuring') -----
- localize
- 	"By default, Timespans will be created with a local timezone's offset."
- 	defaultOffset := DateAndTime localOffset!



More information about the Squeak-dev mailing list