#DOCUMENTATION by cg
class: Timestamp
comment/format in: #utcOffset:
class: Timestamp class
comment/format in: #year:month:day:hour:minute:second:offset:
--- 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