[ https://issues.apache.org/jira/browse/QPID-1904?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12734139#action_12734139 ]
Andrew Stitcher commented on QPID-1904: --------------------------------------- I suspect this is an issue with the qmf code using the underlying qpid::sys:AbsTime class representation directly and assuming it is a since the 1970 epoch. This is not not the case - as documented in cpp/src/qpid/sys/Time.h the value is nanosecs since an unknown base. Accidentally it is probably since 1/1/970 on unix systems, but on Windows I'd bet the epoch is different. This class was never intended to represent calendar time and so there is no facility to convert it directly. I guess the quick fix is to shift the epoch base of the windows code when converting AbsTime to Duration since that is the only way to gain access to the internal nanosec from epoch value. A better way would be to introduce a calendar date to AbsTime constructor so that you can specify the epoch base when you convert to Duration (negative values of AbsTime are perfectly meaningful for this class). > Timestamps are incorrect > ------------------------ > > Key: QPID-1904 > URL: https://issues.apache.org/jira/browse/QPID-1904 > Project: Qpid > Issue Type: Bug > Components: Qpid Managment Framework > Affects Versions: 0.5 > Environment: Windows XP > Reproduced both with the python API and the .Net API > Reporter: Julien Lavigne du Cadet > Attachments: qpid-dates.png > > > The timestamps for configuration and instrumentation messages are incorrect > both with the python and the .Net api. > According to the documentation "All timestamps are uint64 values representing > nanoseconds since the epoch (January 1, 1970)." However, the dates resulting > can be several years in the past or in the future. > To reproduce with the python api : > - in disp.py, line 178 add the following line : > print gmtime (nsec / 1000000000) > - start qpid-tool and list the queues => the full dates will be displayed -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online. --------------------------------------------------------------------- Apache Qpid - AMQP Messaging Implementation Project: http://qpid.apache.org Use/Interact: mailto:dev-subscr...@qpid.apache.org