time
Time utilities for the Pipecat framework.
This module provides utility functions for time handling including ISO8601 formatting, nanosecond conversions, and human-readable time string formatting.
- pipecat.utils.time.time_now_iso8601() str[source]
Get the current UTC time as an ISO8601 formatted string.
- Returns:
The current UTC time in ISO8601 format with millisecond precision.
- pipecat.utils.time.seconds_to_nanoseconds(seconds: float) int[source]
Convert seconds to nanoseconds.
- Parameters:
seconds – The number of seconds to convert.
- Returns:
The equivalent number of nanoseconds as an integer.