We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 14d6c59 commit dd0b854Copy full SHA for dd0b854
1 file changed
src/Common.jl
@@ -188,6 +188,7 @@ end
188
calcDeltatime(from_node, to_node) = calcDeltatime(from_node.timestamp, to_node.timestamp)
189
190
Timestamp(args...) = TimeDateZone(args...)
191
+Timestamp(t::Nanosecond, zone = tz"UTC") = Timestamp(Val(:unix), t, zone)
192
function Timestamp(epoch::Val{:unix}, t::Nanosecond, zone = tz"UTC")
193
return TimeDateZone(TimeDate(1970) + t, zone)
194
end
0 commit comments