Function cras::getYear(const ::rclcpp::Time&)

Function Documentation

int cras::getYear(const ::rclcpp::Time &time)

Get the year represented by the given ROS time when interpreted as UTC time.

Parameters:

time[in] The ROS time.

Returns:

The year.