#DOCUMENTATION by cg
class: TimeDuration
comment/format in:
#milliseconds
#seconds
--- a/TimeDuration.st Mon May 16 12:23:17 2016 +0200
+++ b/TimeDuration.st Mon May 16 12:23:40 2016 +0200
@@ -15,7 +15,7 @@
Time subclass:#TimeDuration
instanceVariableNames:''
- classVariableNames:'TimeDurationZero DefaultFormatForPrinting'
+ classVariableNames:'DefaultFormatForPrinting TimeDurationZero'
poolDictionaries:''
category:'Magnitude-Time'
!
@@ -484,7 +484,8 @@
milliseconds
"get the milliseconds part
(notice: that is NOT the total number of millis,
- but the fractional part only. Use this only for printing"
+ but the fractional part only. Use this only for printing.
+ asMilliseconds or getMilliseconds is probably what you want"
^ timeEncoding \\ 1000
@@ -502,7 +503,8 @@
seconds
"get the number of seconds.
(notice: that is NOT the total number of seconds,
- but the fractional part only. Use this only for printing"
+ but the fractional part only. Use this only for printing.
+ asSeconds or getSeconds is probably what you want"
^ timeEncoding // 1000 \\ 60
! !
@@ -673,7 +675,6 @@
^ aTimestamp addMilliseconds:(self getMilliseconds)
! !
-
!TimeDuration methodsFor:'printing'!
addPrintBindingsTo:aDictionary language:languageOrNil