|
||||||||||
PREV NEXT | FRAMES NO FRAMES |
Packages that use TimeUnits | |
---|---|
edu.nrao.sss.measure | Measurements and their units. |
Uses of TimeUnits in edu.nrao.sss.measure |
---|
Methods in edu.nrao.sss.measure that return TimeUnits | |
---|---|
static TimeUnits |
TimeUnits.fromString(String text)
Returns the time units represented by text . |
static TimeUnits |
TimeUnits.getDefault()
Returns a default unit of time. |
TimeUnits |
AngularVelocityUnits.getTimeUnits()
Returns the units of time used by this unit of velocity. |
TimeUnits |
LinearVelocityUnits.getTimeUnits()
Returns the units of time used by this unit of velocity. |
TimeUnits |
TimeDuration.getUnits()
Returns the units of this duration. |
static TimeUnits |
TimeUnits.valueOf(String name)
Returns the enum constant of this type with the specified name. |
static TimeUnits[] |
TimeUnits.values()
Returns an array containing the constants of this enum type, in the order they are declared. |
Methods in edu.nrao.sss.measure that return types with arguments of type TimeUnits | |
---|---|
static Set<TimeUnits> |
TimeDuration.getLegalUnits()
Returns a set of TimeUnits that are legal for use with
TimeDuration instances. |
Methods in edu.nrao.sss.measure with parameters of type TimeUnits | |
---|---|
TimeOfDay |
TimeOfDay.add(BigDecimal value,
TimeUnits units)
Adds the given amount of time to this time of day. |
TimeOfDay |
TimeOfDay.add(String value,
TimeUnits units)
Adds the given amount of time to this time of day. |
TimeDuration |
TimeDuration.convertTo(TimeUnits newUnits)
Converts this duration to the new units. |
static AngularVelocityUnits |
AngularVelocityUnits.from(ArcUnits angleUnits,
TimeUnits timeUnits)
Returns angular velocity units for the given angle and time units. |
static LinearVelocityUnits |
LinearVelocityUnits.from(DistanceUnits distanceUnits,
TimeUnits timeUnits)
Returns linear velocity units for the given distance and time units. |
long |
TimeDuration.getIntegralPart(TimeUnits units)
For a duration that is thought of as HH:MM:SS.xxx, returns the part corresponding to units , truncated to an integral value. |
BigDecimal |
TimeDuration.getPart(TimeUnits units)
For a duration that is thought of as HH:MM:SS.xxx, returns the part corresponding to units . |
void |
TimeDuration.set(BigDecimal value,
TimeUnits units)
Sets the length and units of this duration. |
void |
TimeDuration.set(String value,
TimeUnits units)
Sets the length and units of this duration. |
void |
TimeDuration.setUnits(TimeUnits newUnits)
Sets the units of this duration to newUnits . |
TimeOfDay |
TimeOfDay.subtract(BigDecimal value,
TimeUnits units)
Subtracts the given amount of time from this time of day. |
TimeOfDay |
TimeOfDay.subtract(String value,
TimeUnits units)
Subtracts the given amount of time from this time of day. |
static void |
LinearVelocityUnits.throwBadUnitsText(String text,
DistanceUnits du,
TimeUnits tu)
|
BigDecimal |
TimeDuration.toUnits(TimeUnits otherUnits)
Returns the length of this duration in otherUnits . |
BigDecimal |
TimeUnits.toUnits(TimeUnits otherUnits)
Returns a factor for converting from this unit to otherUnits . |
long |
TimeDuration.toWholeUnits(TimeUnits otherUnits)
Returns the length of this duration in a whole number of units . |
Constructors in edu.nrao.sss.measure with parameters of type TimeUnits | |
---|---|
TimeDuration(BigDecimal value,
TimeUnits units)
Creates a new duration of the given length. |
|
TimeDuration(String value,
TimeUnits units)
Creates a new duration of the given length. |
|
||||||||||
PREV NEXT | FRAMES NO FRAMES |