Next: , Up: Duration   [Index]


1.69.1 Duration class: instance creation

days: d

Answer a duration of ‘d’ days

days: d hours: h minutes: m seconds: s

Answer a duration of ‘d’ days and the given number of hours, minutes, and seconds.

initialize

Initialize the receiver’s instance variables

milliseconds: msec

Answer a duration of ‘msec’ milliseconds

readFrom: aStream

Parse an instance of the receiver (hours/minutes/seconds) from aStream

weeks: w

Answer a duration of ‘w’ weeks

zero

Answer a duration of zero seconds.