Number.st
changeset 22279 3b4d8c69aa0d
parent 22143 b634ad282d1c
child 22287 df6101a1d351
--- a/Number.st	Thu Sep 21 15:58:22 2017 +0200
+++ b/Number.st	Thu Sep 21 17:37:31 2017 +0200
@@ -592,7 +592,6 @@
     "Modified (comment): / 08-06-2017 / 13:58:36 / mawalch"
 ! !
 
-
 !Number class methodsFor:'constants'!
 
 e
@@ -835,7 +834,6 @@
     "
 ! !
 
-
 !Number class methodsFor:'private'!
 
 readMantissaAndScaleFrom:aStream radix:radix
@@ -930,7 +928,6 @@
     ^ self == Number
 ! !
 
-
 !Number methodsFor:'Compatibility-Squeak'!
 
 asSmallAngleDegrees
@@ -1089,8 +1086,6 @@
     "Modified: / 25-07-2017 / 15:58:46 / cg"
 ! !
 
-
-
 !Number methodsFor:'coercing & converting'!
 
 i
@@ -1361,14 +1356,30 @@
     "
 !
 
+milliSeconds
+    "return a TimeDuration representing this number of milliseconds
+     Same as milliseconds, for compatibility"
+
+    ^ TimeDuration fromMilliseconds:self
+
+    "
+     1000 milliSeconds
+    "
+
+    "Created: / 21-09-2017 / 17:26:32 / cg"
+!
+
 milliseconds
-    "return a TimeDuration representing this number of milliseconds"
+    "return a TimeDuration representing this number of milliseconds.
+     Same as milliSeconds, for compatibility"
 
     ^ TimeDuration fromMilliseconds:self
 
     "
      1000 milliseconds
     "
+
+    "Modified (comment): / 21-09-2017 / 17:37:18 / cg"
 !
 
 minutes
@@ -1767,6 +1778,9 @@
     ^ self
 ! !
 
+
+
+
 !Number methodsFor:'printing & storing'!
 
 displayOn:aGCOrStream
@@ -3312,7 +3326,6 @@
     "Modified: / 5.11.2001 / 17:54:22 / cg"
 ! !
 
-
 !Number class methodsFor:'documentation'!
 
 version