Documentation of 'org.encog.util.time.TimeSpan' Java class
TimeSpan
org.encog.util.time

Class TimeSpan



  • public class TimeSpan
    extends java.lang.Object
    A timespan between two Dates.
    • Constructor Summary

      Constructors 
      Constructor and Description
      TimeSpan(java.util.Date from, java.util.Date to)
      Construct a time span.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method and Description
      java.util.Date getFrom() 
      long getSpan(TimeUnit unit)
      Get the time span specified by the unit.
      java.util.Date getTo() 
      • Methods inherited from class java.lang.Object

        equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • TimeSpan

        public TimeSpan(java.util.Date from,
                        java.util.Date to)
        Construct a time span.
        Parameters:
        from - The from date/time.
        to - The two date/time.
    • Method Detail

      • getFrom

        public java.util.Date getFrom()
        Returns:
        the from
      • getSpan

        public long getSpan(TimeUnit unit)
        Get the time span specified by the unit.
        Parameters:
        unit - The unit desired.
        Returns:
        The timespan in the specified unit.
      • getTo

        public java.util.Date getTo()
        Returns:
        the to date/time.

DMelt 3.0 © DataMelt by jWork.ORG

You see the box below because you did not login.