[squeak] Inconsistency between Time class>>#dateAndTimeFromSeconds: and Time class>>#dateAndTimeNow

John (Zhijiang) Han zhan1 at uiuc.edu
Mon Nov 9 07:33:40 UTC 1998


Anyone noticed that Time class>>#dateAndTimeFromSeconds: returns {time. 
date} while Time class>>#dateAndTimeNow returns {date. time}? 

I made the first one being consistent with its name (and the second one,
of course). 

'From Squeak 2.2 of Sept 23, 1998 on 9 November 1998 at 1:28:38 am'!

!Time class methodsFor: 'general inquiries' stamp: 'JZH 11/8/1998 13:03'!
dateAndTimeFromSeconds: secondCount

	^ Array
		with: (Date fromSeconds: secondCount)
		with: (Time fromSeconds: secondCount \\ 86400)
! !

Cheers
John (Zhijiang)





More information about the Squeak-dev mailing list