[squeak-dev] Re: Date tomorrow - Date today "0:19:00:00"
glenpaling
slp5591 at me.com
Tue Jul 3 16:16:20 UTC 2012
It's just a bad reference to *self localOffset* rather than the specified
offset in todayAtNanoSeconds:offset: (see below). Changing the reference to
*aDuration* fixes the problem. Usually todayAtMilliseconds:offset: is used.
todayAtNanoSeconds:offset is only used when a call to nowWithOffset: results
in the same tick value as the previous call.
todayAtNanoSeconds: nanoSecondsSinceMidnight offset: aDuration
"This is usually only during system startup..."
self waitForOffsets.
^ self basicNew
setJdn: DaysSinceEpoch
seconds: (nanoSecondsSinceMidnight // 1000000000)
nano: (nanoSecondsSinceMidnight \\ 1000000000 )
offset: *self localOffset*
This doesn't help with the Chronology test failures. I'll have a look at
them.
Glen Paling
--
View this message in context: http://forum.world.st/Date-tomorrow-Date-today-0-19-00-00-tp4637024p4637949.html
Sent from the Squeak - Dev mailing list archive at Nabble.com.
More information about the Squeak-dev
mailing list
|