|
|
|
Date Posted: |
December 13th, 2001
|
|
|
Last Updated: |
December 13th, 2001
|
|
|
License: |
BSD/MIT |
|
|
Downloads: |
443 total; 1 recently |
|
|
Page Views: |
6,110 total |
|
|
User Rating: |
awaiting 10 votes |
 |
|
Jump to the Downloads section |
|
 |
 |
About ClockTime Class:
A class for converting time into days, hours, minutes, seconds, etc. Can also generate a BString containing the properly formatted time.
Converts "bigtime_t" (1/1000000sec) time measurements into "Clock Time". Time can be converted to total days, total hours, or total minutes, etc.
"Time parts" can be retrieved, as in <days>:<hours>:<minutes>:<seconds>.<fractionals>.
String formatting options include whether or not to include digits to the left or right of the decimal point (fractions of a second), the number of (zero-padded) decimal places you want, etc.
You can also choose to display fractions of a second (the right-hand side of the decimal point) in any number "fractional" parts that you want. For instance, you could choose 10ths of a second, 100ths of a second, or 30ths of a second.
Very handy, very clean, and can handle VERY LARGE and VERY SMALL time measurements. Very cool.
|
 |
|
 |
Latest Version |
 |
|
 |
| |
 |
|
Details about this version:
First public release.
WARNING: There is a calculation bug in a few of the time conversion functions. This will be fixed shortly, in a new release. You have been warned. :)
Supports:
bigtime_t to Total Days, Total Hours, Total Minutes, etc.
bigtime_t to Days "Part", Hours "Part", Minutes "Part", etc.
bigtime_t to Formatted Text (BString).
Fractional seconds "fraction" is selectable.
Several useful string-formatting options.
DOES NOT (YET) SUPPORT Formatted Text input (Formatted Text to bigtime_t)... coming soon.
Not terribly efficient, but not too slow either. :)
|
| |
 |
|
Any Processor - requires R5 (4 KB) |
443 downloads |
|
 |
|
 |
 |
| |
  |
[rating: 10] |
|
 |
Primary Location |
|
|
| Add Additional Location |
 |
|
 |
|
| Source Included |
 |
 |
 |
 |
 |
Like this app? Have questions or comments?
Why not tell the author? Use the "e-mail publisher" link to get in touch with the publisher; they usually love getting feedback.
|
|
|