Skip to content

Commit db23187

Browse files
authored
Merge pull request #22 from msgpack/feature/update_for_pharo11-2
Override MpPhPortableUtil >> timestampFromSeconds: seconds nanos: nanoSeconds.
2 parents 014a19c + 3cc4631 commit db23187

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)