Skip to content

Commit

Permalink
Changed MpSqPortableUtil >> timestampFromSeconds: seconds nanos: nano…
Browse files Browse the repository at this point in the history
…Seconds
  • Loading branch information
mumez committed Feb 3, 2024
1 parent b2a90aa commit da5228a
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 9 deletions.

This file was deleted.

This file was deleted.

Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
actions
timestampFromSeconds: seconds nanos: nanoSeconds
| ts |
ts := DateAndTime fromSeconds: seconds + 2177452800 offset: 0.
nanoSeconds > 0 ifTrue: [ ts setNanoSeconds: nanoSeconds].
| microseconds ts |
microseconds := (seconds * 1000000) + (nanoSeconds * 0.001).
ts := DateAndTime utcMicroseconds: microseconds offset: 0.
^ts

0 comments on commit da5228a

Please sign in to comment.