Package gaiasky.util.gaia.time
Class Mins
java.lang.Object
gaiasky.util.gaia.time.ConcreteDuration
gaiasky.util.gaia.time.Mins
-
Field Summary
Fields inherited from class gaiasky.util.gaia.time.ConcreteDuration
value
Fields inherited from interface gaiasky.util.gaia.time.Duration
DAYS_PER_JULIAN_YEAR, HOURS_PER_DAY, HOURS_PER_JULIAN_YEAR, HOURS_PER_REV, MINS_PER_DAY, MINS_PER_HOUR, MINS_PER_JULIAN_YEAR, MINS_PER_REV, NS_PER_DAY, NS_PER_DAY_L, NS_PER_HOUR, NS_PER_HOUR_L, NS_PER_JULIAN_YEAR, NS_PER_JULIAN_YEAR_L, NS_PER_MIN, NS_PER_MIN_L, NS_PER_REV, NS_PER_REV_L, NS_PER_SEC, REVS_PER_DAY, REVS_PER_JULIAN_YEAR, SECS_PER_DAY, SECS_PER_HOUR, SECS_PER_JULIAN_YEAR, SECS_PER_MIN, SECS_PER_REV
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionAdd a duration to this onedouble
asDays()
static double
asDays
(double mins) double
asHours()
static double
asHours
(double mins) double
static double
asJulianYears
(double mins) double
asMins()
long
static long
asNanoSecs
(double mins) double
asRevs()
static double
asRevs
(double mins) double
asSecs()
static double
asSecs
(double mins) clone()
Set this duration to a new given oneSubtract a duration from this oneMethods inherited from class gaiasky.util.gaia.time.ConcreteDuration
getScale, isLongerThan, mult, negate, setScale
-
Constructor Details
-
Mins
public Mins()Default constructor -
Mins
public Mins(double mins) Construct object from number of minutes.- Parameters:
mins
- number of mins [minutes]
-
-
Method Details
-
asNanoSecs
public static long asNanoSecs(double mins) - Parameters:
mins
- Time in mins to convert- Returns:
- Minutes expressed in nanoSec
-
asSecs
public static double asSecs(double mins) - Parameters:
mins
- Time in mins to convert- Returns:
- Mins expressed in secs
-
asHours
public static double asHours(double mins) - Parameters:
mins
- Time in mins to convert- Returns:
- Mins expressed in hours
-
asRevs
public static double asRevs(double mins) - Parameters:
mins
- Time in mins to convert- Returns:
- Mins expressed in revs
-
asDays
public static double asDays(double mins) - Parameters:
mins
- Time in mins to convert- Returns:
- Mins expressed in days
-
asJulianYears
public static double asJulianYears(double mins) - Parameters:
mins
- Time in mins to convert- Returns:
- Mins expressed in JulianYears
-
set
-
asNanoSecs
public long asNanoSecs()- Returns:
- duration expressed in ns
- See Also:
-
asSecs
public double asSecs()- Returns:
- duration expressed in s
- See Also:
-
asMins
public double asMins()- Returns:
- duration expressed in min
- See Also:
-
asHours
public double asHours()- Returns:
- duration expressed in h
- See Also:
-
asRevs
public double asRevs()- Returns:
- duration expressed in revolutions
- See Also:
-
asDays
public double asDays()- Returns:
- number of ns expressed days
- See Also:
-
asJulianYears
public double asJulianYears()- Returns:
- duration expressed in Julian years
- See Also:
-
add
-
sub
-
clone
-