Timestamp.st
changeset 24163 b50d5ba0d03b
parent 24160 93d4db241317
child 24404 0681f4ab2d53
--- a/Timestamp.st	Sun May 26 12:49:21 2019 +0200
+++ b/Timestamp.st	Sun May 26 12:55:25 2019 +0200
@@ -579,7 +579,10 @@
 
     "
      Timestamp year:2015 month:11 day:9 hour:12 minute:0 second:0 offset:(2 hours)
-    "
+     Timestamp year:2015 month:11 day:9 hour:12 minute:0 second:0 offset:0
+    "
+
+    "Modified (comment): / 26-05-2019 / 12:10:28 / Claus Gittinger"
 ! !
 
 !Timestamp class methodsFor:'class access'!
@@ -2892,14 +2895,15 @@
     "
 !
 
-utcOffset:anOffset
+utcOffset:secondsOrTimeDuration
    "answer a DateTime equivalent to the receiver but offset from UTC by offset.
      If utcOffset is negative, the local timezone is east of Greenwich (Russia, Asia).
-     If utcOffset is positive, the local timezone is west of Greenwich (USA)."
+     If utcOffset is positive, the local timezone is west of Greenwich (USA).
+     If utcOffset is zero, you effectively get UTC time."
 
     ^ TZTimestamp new 
         osTime:osTime;
-        utcOffset:(anOffset asTimeDuration);
+        utcOffset:(secondsOrTimeDuration asTimeDuration);
         yourself.
 
     "
@@ -2913,6 +2917,7 @@
     "
 
     "Modified: / 27-07-2018 / 11:54:45 / Stefan Vogel"
+    "Modified: / 26-05-2019 / 12:54:56 / Claus Gittinger"
 !
 
 utcSecondsSince1901