diff --git a/repository/MessagePack-Pharo-Core.package/MpPhPortableUtil.class/instance/timestampFromSeconds.nanos..st b/repository/MessagePack-Pharo-Core.package/MpPhPortableUtil.class/instance/timestampFromSeconds.nanos..st new file mode 100644 index 0000000..270fc07 --- /dev/null +++ b/repository/MessagePack-Pharo-Core.package/MpPhPortableUtil.class/instance/timestampFromSeconds.nanos..st @@ -0,0 +1,6 @@ +actions +timestampFromSeconds: seconds nanos: nanoSeconds + | ts | + ts := DateAndTime fromSeconds: seconds + 2177452800 offset: 0. + nanoSeconds > 0 ifTrue: [ ts setNanoSeconds: nanoSeconds]. + ^ts \ No newline at end of file