hydroScalingAPI.tools
Class DateToElapsedTime

java.lang.Object
  extended by hydroScalingAPI.tools.DateToElapsedTime

public class DateToElapsedTime
extends java.lang.Object

This object tranforms a date represented by a string of the type year-month-day-hour-minute-second into an elapsed time since a reference time set by the Calendar object

Author:
Ricardo Mantilla

Constructor Summary
DateToElapsedTime(java.lang.String date)
          Creates a new instance of DateToSeconds
 
Method Summary
 double getDays()
          The number of days since the reference time
 double getHours()
          The number of hours since the reference time
 double getMinutes()
          The number of minutes since the reference time
 double getSeconds()
          The number of seconds since the reference time
 double getYears()
          The number of years since the reference time
static void main(java.lang.String[] args)
          Tests for the class
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DateToElapsedTime

public DateToElapsedTime(java.lang.String date)
Creates a new instance of DateToSeconds

Parameters:
date - The string of the type year-month-day-hour-minute-second
Method Detail

getSeconds

public double getSeconds()
The number of seconds since the reference time

Returns:
A double in units of seconds

getMinutes

public double getMinutes()
The number of minutes since the reference time

Returns:
A double in units of seconds

getHours

public double getHours()
The number of hours since the reference time

Returns:
A double in units of hours

getDays

public double getDays()
The number of days since the reference time

Returns:
A double in units of days

getYears

public double getYears()
The number of years since the reference time

Returns:
A double in units of years

main

public static void main(java.lang.String[] args)
Tests for the class

Parameters:
args - the command line arguments


CUENCAS was initially developed by Ricardo Mantilla at the University of Colorado under the supervision of Dr. Vijay K. Gupta. We wish to recognize the support from the National Science Fundation.