[squeak-dev] The Trunk: Chronology-Core-mt.77.mcz

commits at source.squeak.org commits at source.squeak.org
Mon Apr 11 08:22:37 UTC 2022


Marcel Taeumel uploaded a new version of Chronology-Core to project The Trunk:
http://source.squeak.org/trunk/Chronology-Core-mt.77.mcz

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

Name: Chronology-Core-mt.77
Author: mt
Time: 11 April 2022, 10:22:35.958975 am
UUID: 9e197623-b5ef-9c41-bdfd-9ce954f01721
Ancestors: Chronology-Core-ul.76

Derive a new #printHMOn: from #printHMSOn: in case you need a more compact representation of the time where the granularity of seconds does not matter.

Note that it would be nice if we could have a protocol that accepts time-formatting strings. :-)

Note that I will use this in VMMakerUI to have a more compact update dialog with our CI status.

=============== Diff against Chronology-Core-ul.76 ===============

Item was added:
+ ----- Method: DateAndTime>>printHMOn: (in category 'squeak protocol') -----
+ printHMOn: aStream
+ 	"Print just hh:mm"
+ 	
+ 	| seconds |
+ 	seconds := self getSeconds.
+ 	seconds // 3600 printOn: aStream base: 10 length: 2 padded: true.
+ 	aStream nextPut: $:.
+ 	seconds \\ 3600 // 60 printOn: aStream base: 10 length: 2 padded: true.!



More information about the Squeak-dev mailing list