class: Timestamp
authorStefan Vogel <sv@exept.de>
Thu, 27 Nov 2014 11:11:01 +0100
changeset 17142 4cc07796219b
parent 17141 e2964d1d3d6f
child 17143 5b1217eaafa7
class: Timestamp removed: #asAbsoluteTime #asMilliseconds #asSeconds now in superclass AbstractTime
Timestamp.st
--- a/Timestamp.st	Thu Nov 27 11:08:43 2014 +0100
+++ b/Timestamp.st	Thu Nov 27 11:11:01 2014 +0100
@@ -2103,15 +2103,6 @@
 
 !Timestamp methodsFor:'converting'!
 
-asAbsoluteTime
-    "deprecated, use #asTimestamp"
-
-    <resource:#obsolete>
-
-    self obsoleteMethodWarning:'use #asTimestamp'.
-    ^ self
-!
-
 asDate
     "return a Date object from the receiver.
      The returned date will only represent the day - not the timeOfDay.
@@ -2150,31 +2141,6 @@
     "
 !
 
-asMilliseconds
-    "return the number of milliSeconds elapsed since whatever time the
-     OperatingSystem bases its time upon. Since this is totally
-     OS-dependent, do not interpret the value returned by this method.
-     You can use it to add/subtract milliSeconds or get time deltas, though."
-
-    ^ self getMilliseconds
-!
-
-asSeconds
-    "return the number of seconds elapsed since whatever time the
-     OperatingSystem bases its time upon. Since this is totally
-     OS-dependent, do not interpret the value returned by this method.
-     You can use it to add/subtract seconds or get time deltas, though."
-
-    ^ self getSeconds
-
-    "
-     Timestamp now asSeconds
-     Timestamp fromSeconds:(Timestamp now asSeconds + 3600)
-     Time hour:23 minutes:33 seconds:0
-     Time fromSeconds:((Time hour:23 minutes:33 seconds:0) asSeconds + 3600)
-    "
-!
-
 asTZTimestamp
     "return a timestamp which represents the very same time,
      but will represent itself as a timestamp with the local utcOffset.
@@ -3943,11 +3909,11 @@
 !Timestamp class methodsFor:'documentation'!
 
 version
-    ^ '$Header: /cvs/stx/stx/libbasic/Timestamp.st,v 1.209 2014-11-26 09:40:49 cg Exp $'
+    ^ '$Header: /cvs/stx/stx/libbasic/Timestamp.st,v 1.210 2014-11-27 10:11:01 stefan Exp $'
 !
 
 version_CVS
-    ^ '$Header: /cvs/stx/stx/libbasic/Timestamp.st,v 1.209 2014-11-26 09:40:49 cg Exp $'
+    ^ '$Header: /cvs/stx/stx/libbasic/Timestamp.st,v 1.210 2014-11-27 10:11:01 stefan Exp $'
 ! !