A container for a duration of time.
Returns a new Duration of the two added.
Add aDuration to the receiver. Returns self.
Returns a new Duration of the two subtracted.
Subtract aDuration to the receiver. Returns self.
Returns a number representation of the receiver. (where 1 is equal to one second)
Returns a string representation of the receiver. The formatString argument is optional. If present, the returned string will be formatted according to ANSI C date formating rules.
%y years without century as two-digit
decimal number (00-99) %Y year with century as four-digit decimal number%d days
%H hour as two-digit 24-hour clock decimal integer (00-23)
%M minute as a two-digit decimal integer (00-59)
%S second as a two-digit decimal integer (00-59)
The default format is "%Y %d %H:%M:%S".
Returns a number containing the day of the month of the receiver.
Sets the receiver to the Duration specified by aNumber(same format number as returned by Duration asNumber). Returns self.
Returns a number containing the hour of the day(0-23) of the receiver.
Returns a number containing the minute of the hour(0-59) of the receiver.
Prints the receiver. Returns self.
Returns a number containing the seconds of the minute(0-59) of the receiver. This number may contain fractions of seconds.
Sets the day of the receiver. Returns self.
Sets the hour of the receiver. Returns self.
Sets the minute of the receiver. Returns self.
Sets the second of the receiver. Return self.
Sets the year of the receiver. Returns self.
Same as a asNumber.
Returns a number containing the year of the receiver.