Skip to content

Commit

Permalink
Override MpPhPortableUtil >> timestampFromSeconds: seconds nanos: nan…
Browse files Browse the repository at this point in the history
…oSeconds. This implementation no longer works in Squeak 5+.
  • Loading branch information
mumez committed Feb 3, 2024
1 parent b2a90aa commit 3cc4631
Showing 1 changed file with 6 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
actions
timestampFromSeconds: seconds nanos: nanoSeconds
| ts |
ts := DateAndTime fromSeconds: seconds + 2177452800 offset: 0.
nanoSeconds > 0 ifTrue: [ ts setNanoSeconds: nanoSeconds].
^ts

0 comments on commit 3cc4631

Please sign in to comment.