Re: [Pharo-users] Formatted print for Duration

2018-01-07 Thread Stephane Ducasse
Hi julien Yes it would be nice :) Stef On Thu, Jan 4, 2018 at 2:28 PM, Julien wrote: > I chosen something like the second solution to avoid adding a dependency to > my project (it is a bit overkill for what I wanted to achieve). But > shouldn’t this formatted-print feature be added in Duration?

Re: [Pharo-users] Formatted print for Duration

2018-01-04 Thread Julien
I chosen something like the second solution to avoid adding a dependency to my project (it is a bit overkill for what I wanted to achieve). But shouldn’t this formatted-print feature be added in Duration? Julien --- Julien Delplanque Doctorant à l’Université de Lille 1 http://juliendelplanque.b

Re: [Pharo-users] Formatted print for Duration

2018-01-03 Thread Andreas Brodbeck
Am 03.01.18 um 14:07 schrieb Julien: > Hello, > > I do not see how to do a formatted print from a duration. > > I would like to be able to do something like: > > String streamContents: [ :s | 90 minutes formatted: ‘hh:mm’ printOn: s ] > > The Duration>>#printOn: method prints the ANSI 5.8.2.16

[Pharo-users] Formatted print for Duration

2018-01-03 Thread Julien
Hello, I do not see how to do a formatted print from a duration. I would like to be able to do something like: String streamContents: [ :s | 90 minutes formatted: ‘hh:mm’ printOn: s ] The Duration>>#printOn: method prints the ANSI 5.8.2.16 format: [-]D:HH:MM:SS[.S] The Duration>>#printHumanRe