The Trunk: Chronology-Core-cmm.6.mcz

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

The Trunk: Chronology-Core-cmm.6.mcz

commits-2
Chris Muller uploaded a new version of Chronology-Core to project The Trunk:
http://source.squeak.org/trunk/Chronology-Core-cmm.6.mcz

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

Name: Chronology-Core-cmm.6
Author: cmm
Time: 28 June 2016, 9:38:09.069292 pm
UUID: 29a5a2b4-59f0-4bb4-a3d4-56fe680d31ec
Ancestors: Chronology-Core-bf.5

Fix Date class comment.  Add Date>>#@ shortcut for constructing DateAndTime's.

=============== Diff against Chronology-Core-bf.5 ===============

Item was changed:
  Timespan subclass: #Date
  instanceVariableNames: ''
  classVariableNames: ''
  poolDictionaries: 'ChronologyConstants'
  category: 'Chronology-Core'!
 
+ !Date commentStamp: 'cmm 6/28/2016 21:36' prior: 0!
+ Instances of Date are Timespans with duration of 1 day.  As with all Chronology Timespan sub-instances, Dates can be instantiated as position values which compare equally to any other instance of the same Date, irregardless of the timezone in which either is created.
- !Date commentStamp: 'cmm 2/3/2012 17:30' prior: 0!
- Instances of Date are Timespans with duration of 1 day.
 
+ However, like the other Timespan subInstances, there are rare cases where it may be desirable to use instances of Date to represent a particular 1-day span of time at a particular locality on the globe.  All Timespans, including Dates, may specify a particular timezone offset for this purpose.!
- Their default creation assumes a start of midnight of UTC to provide the fast, globalized Dates out of the box.  The legacy behavior that creates Timezone-sensitive Dates can be used by sending #localizedDates.
- !

Item was added:
+ ----- Method: Date>>@ (in category 'squeak protocol') -----
+ @ aTime
+ ^ DateAndTime
+ date: self
+ time: aTime!