Class Days

  • All Implemented Interfaces:
    Duration, java.io.Serializable

    public class Days
    extends ConcreteDuration
    implements java.io.Serializable
    A finite number of days There are two implementations provided of the conversions methods one as object interface, where an object of the current class has to be instantiated. The oder implementation is provided as static class methods. Performance tests of both implementations have come up with a performance improvement of 20% of the static methods compared with the object methods.
    See Also:
    Serialized Form
    • Constructor Detail

      • Days

        public Days()
        Default constructor
      • Days

        public Days​(double days)
        Construct object
        Parameters:
        days - number of days
    • Method Detail

      • asNanoSecs

        public static long asNanoSecs​(double days)
        Parameters:
        days - The time in days to convert.
        Returns:
        days expressed in nanoSec
      • asSecs

        public static double asSecs​(double days)
        Parameters:
        days - The time in days to convert.
        Returns:
        days expressed in sec
      • asMins

        public static double asMins​(double days)
        Parameters:
        days - The time in days to convert.
        Returns:
        days expressed in mins
      • asRevs

        public static double asRevs​(double days)
        Parameters:
        days - The time in days to convert.
        Returns:
        days expressed in revolutions
      • asHours

        public static double asHours​(double days)
        Parameters:
        days - The time in days to convert.
        Returns:
        days expressed in hours
      • asJulianYears

        public static double asJulianYears​(double days)
        Parameters:
        days - The time in days to convert.
        Returns:
        days expressed in julian years
      • clone

        public Days clone()
        Overrides:
        clone in class java.lang.Object
        See Also:
        Object.clone()