Function cras::getYear(const ::std::chrono::system_clock::time_point&)

Function Documentation

int cras::getYear(const ::std::chrono::system_clock::time_point &time)

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

Parameters:

time[in] The chrono time.

Returns:

The year.