ROSBag.format_local_time#
- static ROSBag.format_local_time(timestamp_ns: int, fmt: str | None = None) str[source]#
Format a ROS timestamp to a local-time string.
- Parameters:
timestamp_ns (int) – ROS timestamp in nanoseconds since the Unix epoch (UTC)
fmt (str or None) –
strftimeformat string; defaults to ISO 8601 with millisecond precision
- Returns:
formatted time string
- Return type:
str
- Seealso: