ROS Resources: Documentation | Support | Discussion Forum | Index | Service Status | ros @ Robotics Stack Exchange
Ask Your Question

what does "ros::WallTime::now().toSec()" returns?

asked 2019-09-06 13:31:58 -0600

samyak jain gravatar image

I am trying to print the current time in this format hr:min:sec .

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted

answered 2019-09-06 22:36:45 -0600

Unix time, in a C++ double type

ei 1567827230.4325 when I read this question. Check out ctime and other time libraries, there's multiple solutions to convert unix time to any arbitrary human readable format.

edit flag offensive delete link more

Question Tools

1 follower


Asked: 2019-09-06 13:31:58 -0600

Seen: 411 times

Last updated: Sep 06 '19