You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The integer part of the f64 is the NTP64's Seconds part.
589
+
The decimal part of the f64 is the result of a division of NTP64's Fraction part divided by 2^32.
590
+
Considering the probable large number of Seconds (for a time relative to UNIX_EPOCH), the precision of the resulting f64 might be in the order of microseconds.
591
+
Therefore, it should not be used for comparison. Directly comparing [NTP64] objects is preferable.
592
+
"""
593
+
594
+
defas_secs(self) ->int:
595
+
"""Returns the 32-bits seconds part."""
596
+
597
+
defas_nanos(self) ->int:
598
+
"""Returns the total duration converted to nanoseconds."""
599
+
600
+
defsubsec_nanos(self) ->int:
601
+
"""Returns the 32-bits fraction of second part converted to nanoseconds."""
602
+
603
+
defto_datetime(self) ->datetime:
604
+
"""Returns this NTP64 as a datetime."""
605
+
606
+
defto_string_rfc3339_lossy(self) ->str:
607
+
"""Convert to a RFC3339 time representation with nanoseconds precision.
608
+
609
+
e.g.: `"2024-07-01T13:51:12.129693000Z"``"""
610
+
611
+
@classmethod
612
+
defparse_rfc3339(cls, s: str) ->Self:
613
+
"""Parse a RFC3339 time representation into a NTP64."""
614
+
615
+
def__eq__(self, other: Any) ->bool: ...
616
+
def__ge__(self, other) ->bool: ...
617
+
def__hash__(self) ->int: ...
618
+
def__str__(self) ->str: ...
619
+
577
620
@final
578
621
classParameters:
579
622
"""A collection of key-value parameters used in query operations.
@@ -1723,10 +1766,13 @@ class Timestamp:
1723
1766
For detailed information about Timestamp, see: https://docs.rs/zenoh/latest/zenoh/time/struct.Timestamp.html
0 commit comments