Skip to content

Commit 3cc4631

Browse files
committed
Override MpPhPortableUtil >> timestampFromSeconds: seconds nanos: nanoSeconds. This implementation no longer works in Squeak 5+.
1 parent b2a90aa commit 3cc4631

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed
Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
actions
2+
timestampFromSeconds: seconds nanos: nanoSeconds
3+
| ts |
4+
ts := DateAndTime fromSeconds: seconds + 2177452800 offset: 0.
5+
nanoSeconds > 0 ifTrue: [ ts setNanoSeconds: nanoSeconds].
6+
^ts

0 commit comments

Comments
 (0)