Skip to content

Commit dd0b854

Browse files
committed
Timestamp(Nanosecond)
1 parent 14d6c59 commit dd0b854

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

src/Common.jl

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -188,6 +188,7 @@ end
188188
calcDeltatime(from_node, to_node) = calcDeltatime(from_node.timestamp, to_node.timestamp)
189189

190190
Timestamp(args...) = TimeDateZone(args...)
191+
Timestamp(t::Nanosecond, zone = tz"UTC") = Timestamp(Val(:unix), t, zone)
191192
function Timestamp(epoch::Val{:unix}, t::Nanosecond, zone = tz"UTC")
192193
return TimeDateZone(TimeDate(1970) + t, zone)
193194
end

0 commit comments

Comments
 (0)