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

rxbag human readable timestamp: local or UTC time?

asked 2012-02-29 23:16:50 -0600

Enrique gravatar image

It seems that the human readable timestamp shown in rxbag status bar, at the right of the raw sec.nsec representation, is in local time.

Indeed, in $(rospack find rxbag)/src/rxbag/bag_helper.py the stamp_to_str function, which performs the conversion to string, uses the Python time.localtime method, instead of time.gmtime that converts to UTC time.

Shouldn't it be shown in UTC? Or at least put some UTC+N suffix? With the current implementation, should I expect that time string to change when daylight or timezone in my pc changes?

Maybe this is quite pedantic ---I admit---, or I'm just missing something. Thanks any way in advance for clarifying.

edit retag flag offensive close merge delete

Comments

Ticket here.

Enrique gravatar image Enrique  ( 2012-04-25 23:08:30 -0600 )edit

1 Answer

Sort by ยป oldest newest most voted
1

answered 2012-03-29 22:22:04 -0600

this post is marked as community wiki

This post is a wiki. Anyone with karma >75 is welcome to improve it.

If you'd like this fixed I suggest you open a ticket for it here

edit flag offensive delete link more

Question Tools

Stats

Asked: 2012-02-29 23:16:50 -0600

Seen: 1,375 times

Last updated: Apr 25 '12