Ask Your Question
1

rxbag human readable timestamp: local or UTC time?

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

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 -0500 )edit

1 Answer

Sort by ยป oldest newest most voted
1

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

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

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Question Tools

Stats

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

Seen: 1,075 times

Last updated: Apr 25 '12