aqnwb 0.3.0
Loading...
Searching...
No Matches
AQNWB::detail Namespace Reference

Functions

std::tm to_local_time (std::time_t time_value)
 Convert a std::time_t value to a local std::tm structure.
std::tm to_utc_time (std::time_t time_value)
 Convert a std::time_t value to a UTC std::tm structure.
long get_utc_offset_seconds (std::time_t time_value)
 Get the UTC offset in seconds for a given time_t value.
std::string format_utc_offset (long offset_seconds)
 Format a UTC offset in seconds as a string (+HH:MM or -HH:MM).
uint16_t to_little_endian_u16 (uint16_t value)
 Convert a 16-bit unsigned integer to little-endian byte order.

Function Documentation

◆ format_utc_offset()

std::string AQNWB::detail::format_utc_offset ( long offset_seconds)
inline

Format a UTC offset in seconds as a string (+HH:MM or -HH:MM).

Parameters
offset_secondsThe offset in seconds.
Returns
The formatted UTC offset string.
Here is the caller graph for this function:

◆ get_utc_offset_seconds()

long AQNWB::detail::get_utc_offset_seconds ( std::time_t time_value)
inline

Get the UTC offset in seconds for a given time_t value.

Parameters
time_valueThe time value to check.
Returns
The offset from UTC in seconds.
Here is the call graph for this function:
Here is the caller graph for this function:

◆ to_little_endian_u16()

uint16_t AQNWB::detail::to_little_endian_u16 ( uint16_t value)
inline

Convert a 16-bit unsigned integer to little-endian byte order.

Parameters
valueThe value to convert.
Returns
The value in little-endian byte order.
Here is the caller graph for this function:

◆ to_local_time()

std::tm AQNWB::detail::to_local_time ( std::time_t time_value)
inline

Convert a std::time_t value to a local std::tm structure.

Parameters
time_valueThe time value to convert.
Returns
The corresponding local std::tm structure.
Here is the caller graph for this function:

◆ to_utc_time()

std::tm AQNWB::detail::to_utc_time ( std::time_t time_value)
inline

Convert a std::time_t value to a UTC std::tm structure.

Parameters
time_valueThe time value to convert.
Returns
The corresponding UTC std::tm structure.
Here is the caller graph for this function: