Represents a time unit for conversion of time durations. More...
Static Public Member Functions static double convert (double value, TimeUnit srcUnit, TimeUnit dstUnit) Convertsvalue
expressed in time unit srcUnit
to a time duration expressed in dstUnit
and returns the result of the conversion. More...
ns
.
us
.
ms
.
s
.
min
.
h
.
d
.
w
.
Represents a time unit for conversion of time durations.
A time unit instance can be used to get information about the time unit and as a selector to perform conversions. Each time unit has a short name used when representing a time unit, a full descriptive name, and the number of hours corresponding to one unit.
Member Function Documentation ◆ convert()Converts value
expressed in time unit srcUnit
to a time duration expressed in dstUnit
and returns the result of the conversion.
srcUnit
or dstUnit
are null
.
Returns this time unit represented in hours.
This returns the number of hours corresponding to one unit.
Returns the long name of this time unit.
Returns the short name representing this unit in a string specifying a time duration.
The documentation for this enum was generated from the following file:
RetroSearch is an open source project built by @garambo | Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.4