Class Mins

All Implemented Interfaces:
Duration

public class Mins extends ConcreteDuration
  • 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

      public Duration set(Duration d)
      Description copied from interface: Duration
      Set this duration to a new given one
      Parameters:
      d - duration to set this one to
      Returns:
      updated object
      See Also:
    • 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

      public Duration add(Duration d)
      Description copied from interface: Duration
      Add a duration to this one
      Parameters:
      d - amount of time to add
      Returns:
      updated object
      See Also:
    • sub

      public Duration sub(Duration d)
      Description copied from interface: Duration
      Subtract a duration from this one
      Parameters:
      d - amount of time to subtract
      Returns:
      updated object
      See Also:
    • clone

      public Mins clone()
      Overrides:
      clone in class Object
      See Also: