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>>#printHumanReadableOn: is not printing in the format I want.

Am I missing something or such feature does not exist actually?

Julien

---
Julien Delplanque
Doctorant à l’Université de Lille 1
http://juliendelplanque.be/phd.html
Equipe Rmod, Inria
Bâtiment B 40, avenue Halley 59650 Villeneuve d'Ascq
Numéro de téléphone: +333 59 35 86 40

Reply via email to