#DOCUMENTATION by cg
authorClaus Gittinger <cg@exept.de>
Mon, 16 May 2016 12:23:40 +0200
changeset 19849 e989f43ce274
parent 19848 5418481e516b
child 19850 c30c21be7440
#DOCUMENTATION by cg class: TimeDuration comment/format in: #milliseconds #seconds
TimeDuration.st
--- 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