org.mbari.siam.utils
Class TimeUtils

java.lang.Object
  extended by org.mbari.siam.utils.TimeUtils

public class TimeUtils
extends java.lang.Object

Various utilities for manipulating and converting times, dates, and their string representations.


Constructor Summary
TimeUtils()
           
 
Method Summary
static long parseDateTime(java.lang.String dateTimeString)
          Return time (millisec since epoch) corresponding to input date/time string.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

TimeUtils

public TimeUtils()
Method Detail

parseDateTime

public static long parseDateTime(java.lang.String dateTimeString)
                          throws java.text.ParseException
Return time (millisec since epoch) corresponding to input date/time string. Input string format must conform to one of the following: "M/d/yyyy'T'H:m:s", "M/d/yyyy'T'H:m", or "M/d/yyyy". I.e., if clock time is specified, it must be separated from the mm/dd/yyyy by upper case 'T'.

Throws:
java.text.ParseException


Copyright © 2003 MBARI.

The Monterey Bay Aquarium Research Institute (MBARI) provides this documentation and code "as is", with no warranty, express or implied, of its quality or consistency. It is provided without support and without obligation on the part of MBARI to assist in its use, correction, modification, or enhancement.