Opened 13 years ago

Last modified 12 years ago

#3398 new Feature Requests

boost::posix_time::time_duration accesser for obtaining milliseconds

Reported by: Raymond Chandler III <raymond.chandler.ctr@…> Owned by: az_sw_dude
Milestone: Boost 1.41.0 Component: date_time
Version: Boost 1.40.0 Severity: Problem
Keywords: Cc: vicente.botet@…

Description

Hey guys:

It would be really nice to get the milliseconds of time in boost::posix_time::time_duration. There is only an option to get the total_milliseconds(), which gives the result of the total milliseconds that have passed in that day. Although I can take this and compute hours, minutes, seconds and milliseconds from it, it is a bit of a pain in the ass to do it that way.

It would be much nicer if I could just call a function to give me the millisecond remainder from seconds. You have accessers like this for hours, minutes, and seconds, so why not milliseconds?

Change History (2)

comment:1 by Steven Watanabe, 13 years ago

Component: Nonedate_time
Owner: set to az_sw_dude

comment:2 by Vicente Botet <vicente.botet@…>, 12 years ago

Cc: vicente.botet@… added
Note: See TracTickets for help on using tickets.