Wireshark mailing list archives

Re: getting the time


From: philippe alarcon <philippe.alarcon () live fr>
Date: Thu, 21 Jan 2010 23:00:31 +0100



You are right.
Your solution is  more appropriate in this case.

From: guy () alum mit edu
Date: Thu, 21 Jan 2010 13:42:36 -0800
To: wireshark-dev () wireshark org
Subject: Re: [Wireshark-dev] getting the time


On Jan 21, 2010, at 1:20 PM, philippe alarcon wrote:

Because I have used abs_time_secs_to_str() to convert the time value in a string.

Why not make the *value* be the time as an nstime_t (set secs to the time value, set nsecs to 0), and use 
proto_tree_add_time_format_value() to display it without the fraction-of-a-second part?
___________________________________________________________________________
Sent via:    Wireshark-dev mailing list <wireshark-dev () wireshark org>
Archives:    http://www.wireshark.org/lists/wireshark-dev
Unsubscribe: https://wireshark.org/mailman/options/wireshark-dev
             mailto:wireshark-dev-request () wireshark org?subject=unsubscribe
                                          
_________________________________________________________________
Découvrez Windows 7 en 7 secondes !
http://clk.atdmt.com/FRM/go/181574577/direct/01/
___________________________________________________________________________
Sent via:    Wireshark-dev mailing list <wireshark-dev () wireshark org>
Archives:    http://www.wireshark.org/lists/wireshark-dev
Unsubscribe: https://wireshark.org/mailman/options/wireshark-dev
             mailto:wireshark-dev-request () wireshark org?subject=unsubscribe

Current thread: