com.isti.util
Class IstiEpoch

java.lang.Object
  extended by com.isti.util.IstiEpoch
All Implemented Interfaces:
java.lang.Comparable, java.util.Comparator

public class IstiEpoch
extends java.lang.Object
implements java.lang.Comparable, java.util.Comparator

IstiEpoch is a class that is used to help convert from IstiEpochs (either longs or doubles) into GregorianCalendar

Version:
1.0.232
Author:
Instrumental Software Technologies, Inc. (ISTI)

Field Summary
static int AllTime
           
static int Day
           
static int DayHr
           
static int DayHrMin
           
static int DayHrMinSec
           
static int DayHrMinSecMsec
           
static java.lang.String defaultBottomFormat
           
static java.lang.String defaultFormat
           
static int Epoch
           
static java.lang.String epochFormat
           
static int HrMin
           
static int HrMinSec
           
static int HrMinSecMSec
           
static int Min
           
static int MinSec
           
static int MinSecMsec
           
(package private) static java.lang.String[] monthNames
           
static int Msec
           
static int None
           
static int SecMsec
           
static int YearDay
           
static int YearDayHr
           
static int YearDayHrMin
           
static int YearDayHrMinSec
           
 
Constructor Summary
IstiEpoch()
          This constructor sets the time to 0 milliseconds.
IstiEpoch(java.util.Calendar calendar)
          Creates an IstiEpoch from an existing calendar.
IstiEpoch(java.util.Date date)
          Creates an IstiEpoch from a Date
IstiEpoch(double seconds)
          Creates an IstiEpoch from the number of seconds from the Epoch time
IstiEpoch(IstiEpoch epoch)
          Creates an IstiEpoch from another Epoch time
IstiEpoch(long milliseconds)
          Creates an IstiEpoch from the number of milliseconds from the Epoch time
IstiEpoch(long seconds, long milliseconds)
          Creates an IstiEpoch from the number of seconds and milliseconds from the Epoch time
IstiEpoch(java.lang.String respTime)
          Creates an IstiEpoch from a string in RESP output format YYYY,DDD,HH:MM:SS from the Epoch time
 
Method Summary
 double absDiff(IstiEpoch epoch)
          This function returns the number of seconds between this and another IstiEpoch
 void add(double seconds)
          This function adds the number of seconds to the time
 java.lang.String btimeFormattedString()
          Get the Btime formatted string
 java.lang.String CanadaFormattedString()
          format like this.....
 void clear()
          Clear the time by setting the Epoch to 0.
 int compare(IstiEpoch time1, IstiEpoch time2)
          Compares its two arguments for order.
 int compare(java.lang.Object o1, java.lang.Object o2)
          Compares its two arguments for order.
 int compareTo(IstiEpoch anotherTime)
          Compares this IstiEpoch to another Object.
 int compareTo(java.lang.Object o)
          Compares this IstiEpoch to another Object.
 double diff(IstiEpoch epoch)
          This function returns the number of seconds between this and another IstiEpoch
 boolean equals(java.lang.Object o)
           
 java.lang.String fileFormattedString()
           
 java.lang.String FissuresFormattedString()
          format like this.....
 java.lang.String formatInt(java.lang.String item, int places)
          Get a string with at least the specified number of places by padded with zero's.
 java.lang.String formattedString()
           
 java.lang.String formattedString(int type)
           
 java.lang.String formattedString(java.lang.String name)
           
 int get(int calVal)
          Get the value for the given calendar field.
 double getEpoch()
          Get the number of seconds from the epoch time
static java.lang.String[] getFormattedStrings()
           
static java.lang.String getFormatType(int type)
           
 java.util.GregorianCalendar getGregorianCalendar()
          Get the GregorianCalendar
 java.lang.String getHr()
          Get the hour of day
 int getIntDOM()
          Get the day of month
 int getIntDOY()
          Get the day of year
 int getIntEpoch()
          Deprecated. This only supports up to the year 2038, use getIntEpochSeconds().
 long getIntEpochMSecs()
          Get the number of milliseconds from the epoch time
 long getIntEpochSeconds()
          Get the number of seconds from the epoch time
 int getIntHr()
          Get the hour of day.
 int getIntInt(int calVal)
          Get the value for the given calendar field.
 int getIntMn()
          Get the minute within the hour.
 int getIntMonth()
          Get the month.
 int getIntSec()
          Get the second within the minute.
 int getIntYear()
          Get the year
 java.lang.String getJDay()
          Get the text for the day of the year.
 long getLongEpoch()
          Get the number of seconds from the epoch time
 int getmDay()
          Get the day of month
 java.lang.String getMDay()
          Get the month
 java.lang.String getMessage()
          Get the message that some methods leave
 java.lang.String getMn()
          Get the text for the minute within the hour
 java.lang.String getMonStr()
          Get the text for the month
 java.lang.String getMSecond()
          Get the text for milliseconds with 3 places
 java.lang.String getMsecond(int places)
          Get the text for milliseconds
 java.lang.String getSecond()
          Get the text for second within the minute
 java.lang.String getTenthsMillisecond()
          Get the text for tenths milliseconds
 java.util.Date getTime()
          Get the time
 long getTimeInMillis()
          Gets the current time as a long.
 java.util.TimeZone getTimeZone()
          Get the time zone
 java.lang.String getYear()
          Get the text for the year
 int hashCode()
          Returns a hash code value for this object.
 java.lang.String hrminsecmsString()
           
 java.lang.String hrminsecString()
           
 boolean inTimeRange(IstiEpoch start, IstiEpoch end)
          Determines if this IstiEpoch is in the specified time range.
 boolean isAfter(double rtime)
          Determines if this IstiEpoch if after given time
 boolean isAfter(IstiEpoch refTime)
          Determines if this IstiEpoch if after given time
 boolean isAfterEqual(IstiEpoch refTime)
          Determines if this IstiEpoch if after or equal to the given time
 boolean isAfterNotEqual(IstiEpoch refTime)
          Determines if this IstiEpoch is after and not equal to the given time
 boolean isBefore(double rtime)
          Determines if this IstiEpoch is before the given time
 boolean isBefore(IstiEpoch refTime)
          Determines if this IstiEpoch is before the given time
 boolean isBeforeEqual(IstiEpoch refTime)
          Determines if this IstiEpoch is before or equal to the given time
 boolean isBeforeNotEqual(IstiEpoch refTime)
          Determines if this IstiEpoch is before and not equal to the given time
 boolean isEqualTo(IstiEpoch refTime)
          Determines if this IstiEpoch is equal to the given time
 boolean isEvenMinute()
          Determines if this IstiEpoch is at an even minute
 java.lang.String ISO8601FormattedString()
           
 java.lang.String labelformattedString()
           
 java.lang.String longformattedString()
           
static void main(java.lang.String[] args)
           
 java.lang.String minsecString()
           
 void minus(double seconds)
          This function subtracts the number of seconds from the time
 java.lang.String secString()
           
 void set(int year, int month, int day, int hr, int min)
          Set everything but the seconds.
 void setDateToTODAY()
          trims the time to the start of the current day (leave time alone)
 void setHr(int hour)
          Set the hour of day
 void setIntTime(double seconds)
          set time passing in seconds since 1970
 void setIntTime(int seconds)
          set time passing in seconds since 1970
 void setIntTime(long seconds)
          set time passing in seconds since 1970
 void setJDay(int doy)
          Set the day of year
 void setmDay(int day)
          Set the day of month
 void setMn(int min)
          Set the minute within the hour
 void setMonth(int month)
          Set the month
 void setMSecond(int millisecond)
          Set the millisecond within the second
 void setSec(int second)
          Set the second within the minute
 void setSecond(int second)
          Set the second within the minute
 void setTime(java.util.Calendar calendar)
          Set time passing in an existing calendar.
 void setTime(java.util.Date date)
          Sets the time.
 void setTime(double dsecs)
          set time passing in seconds since 1970
 void setTime(int year, int jday, int hr, int min, int sec)
          Set the time
 void setTime(IstiEpoch epoch)
          Set time passing in another Epoch time.
 void setTime(long msecs)
          set time passing in milliseconds since 1970.
 void setTime(long seconds, long milliseconds)
          set time passing in seconds and milliseconds since 1970
 void setTime(java.lang.String respTime)
          set time from RESP format string time.
 void setTimeAltFissuresTime(java.lang.String ftime)
          accepts the time in the format YYYY-MM-DDTHH:MM:SS.mmmZ
 void setTimeCanadaTime(java.lang.String ftime)
          accepts the time in the format YYYYMMDD.HHMM
 void setTimeFissuresTime(java.lang.String ftime)
          accepts the time in the format YYYY-MM-DDTHH:MM:SS.mmmZ
 void setTimeInMillis(long millis)
          Sets the current time from the given long value.
 void setTimetoDay()
          trims the time to the start of the current day
 void setTimetoDay(IstiEpoch epoch)
          trims the time to the start of the desired day
 IstiEpoch settoCurrentTime()
          Set to the current time.
 void setYear(int year)
          Set the year
 java.lang.String toString()
          Get a string representation of the epoch
static java.lang.String toString(double seconds)
          Get a string representation for the time
 java.lang.String toWaveviewerRequestString()
           
 java.lang.String yeardayString()
           
 java.lang.String yearmondayhrminString()
           
 java.lang.String yearmondayString()
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Field Detail

epochFormat

public static final java.lang.String epochFormat
See Also:
Constant Field Values

defaultFormat

public static final java.lang.String defaultFormat
See Also:
Constant Field Values

defaultBottomFormat

public static final java.lang.String defaultBottomFormat
See Also:
Constant Field Values

None

public static final int None
See Also:
Constant Field Values

AllTime

public static final int AllTime
See Also:
Constant Field Values

YearDayHrMinSec

public static final int YearDayHrMinSec
See Also:
Constant Field Values

YearDayHrMin

public static final int YearDayHrMin
See Also:
Constant Field Values

YearDayHr

public static final int YearDayHr
See Also:
Constant Field Values

YearDay

public static final int YearDay
See Also:
Constant Field Values

DayHrMinSecMsec

public static final int DayHrMinSecMsec
See Also:
Constant Field Values

DayHrMinSec

public static final int DayHrMinSec
See Also:
Constant Field Values

DayHrMin

public static final int DayHrMin
See Also:
Constant Field Values

DayHr

public static final int DayHr
See Also:
Constant Field Values

Day

public static final int Day
See Also:
Constant Field Values

HrMinSecMSec

public static final int HrMinSecMSec
See Also:
Constant Field Values

HrMinSec

public static final int HrMinSec
See Also:
Constant Field Values

HrMin

public static final int HrMin
See Also:
Constant Field Values

MinSecMsec

public static final int MinSecMsec
See Also:
Constant Field Values

MinSec

public static final int MinSec
See Also:
Constant Field Values

Min

public static final int Min
See Also:
Constant Field Values

SecMsec

public static final int SecMsec
See Also:
Constant Field Values

Msec

public static final int Msec
See Also:
Constant Field Values

Epoch

public static final int Epoch
See Also:
Constant Field Values

monthNames

static final java.lang.String[] monthNames
Constructor Detail

IstiEpoch

public IstiEpoch()
This constructor sets the time to 0 milliseconds.

See Also:
settoCurrentTime()

IstiEpoch

public IstiEpoch(java.util.Calendar calendar)
Creates an IstiEpoch from an existing calendar.

Parameters:
calendar - the calendar

IstiEpoch

public IstiEpoch(java.util.Date date)
Creates an IstiEpoch from a Date

Parameters:
date - the date

IstiEpoch

public IstiEpoch(double seconds)
Creates an IstiEpoch from the number of seconds from the Epoch time

Parameters:
seconds - the seconds from the Epoch time

IstiEpoch

public IstiEpoch(IstiEpoch epoch)
Creates an IstiEpoch from another Epoch time

Parameters:
epoch - the other Epoch time or null if none

IstiEpoch

public IstiEpoch(long milliseconds)
Creates an IstiEpoch from the number of milliseconds from the Epoch time

Parameters:
milliseconds - milliseconds since 1970.

IstiEpoch

public IstiEpoch(long seconds,
                 long milliseconds)
Creates an IstiEpoch from the number of seconds and milliseconds from the Epoch time

Parameters:
seconds - seconds since 1970.
milliseconds - milliseconds since 1970.

IstiEpoch

public IstiEpoch(java.lang.String respTime)
Creates an IstiEpoch from a string in RESP output format YYYY,DDD,HH:MM:SS from the Epoch time

Parameters:
respTime - the RESP time
Method Detail

absDiff

public double absDiff(IstiEpoch epoch)
This function returns the number of seconds between this and another IstiEpoch

Parameters:
epoch - the other epoch time

add

public void add(double seconds)
This function adds the number of seconds to the time

Parameters:
seconds - the number of seconds

btimeFormattedString

public java.lang.String btimeFormattedString()
Get the Btime formatted string

Returns:
the Btime formatted string

CanadaFormattedString

public java.lang.String CanadaFormattedString()
format like this..... "yyyyMMdd.HHmmss"

Returns:
a string representation of the time

clear

public void clear()
Clear the time by setting the Epoch to 0.


compare

public int compare(IstiEpoch time1,
                   IstiEpoch time2)
Compares its two arguments for order.

Parameters:
time1 - the first time.
time2 - the second time.
Returns:
a negative integer, zero, or a positive integer as the first argument is less than, equal to, or greater than the second

compare

public int compare(java.lang.Object o1,
                   java.lang.Object o2)
            throws java.lang.ClassCastException
Compares its two arguments for order.

Specified by:
compare in interface java.util.Comparator
Parameters:
o1 - the first Object.
o2 - the second Object.
Returns:
a negative integer, zero, or a positive integer as the first argument is less than, equal to, or greater than the second
Throws:
java.lang.ClassCastException - - if an argument is not an IstiEpoch.

compareTo

public int compareTo(IstiEpoch anotherTime)
Compares this IstiEpoch to another Object. If the Object is an IstiEpoch, this function behaves like compareTo(IstiEpoch). Otherwise, it throws a ClassCastException (as IstiEpochs are comparable only to other IstiEpochs).

Parameters:
anotherTime - the time to be compared.
Returns:
the value 0 if the argument is an IstiEpoch equal to this IstiEpoch; a value less than 0 if the argument is an IstiEpoch after this IstiEpoch; and a value greater than 0 if the argument is an IstiEpoch before this IstiEpoch.

compareTo

public int compareTo(java.lang.Object o)
              throws java.lang.ClassCastException
Compares this IstiEpoch to another Object. If the Object is an IstiEpoch, this function behaves like compareTo(IstiEpoch). Otherwise, it throws a ClassCastException (as IstiEpochs are comparable only to other IstiEpochs).

Specified by:
compareTo in interface java.lang.Comparable
Parameters:
o - Object
Returns:
the value 0 if the argument is an IstiEpoch equal to this IstiEpoch; a value less than 0 if the argument is an IstiEpoch after this IstiEpoch; and a value greater than 0 if the argument is an IstiEpoch before this IstiEpoch
Throws:
java.lang.ClassCastException - - if the argument is not an IstiEpoch.

diff

public double diff(IstiEpoch epoch)
This function returns the number of seconds between this and another IstiEpoch

Parameters:
epoch - another epoch time

equals

public boolean equals(java.lang.Object o)
Specified by:
equals in interface java.util.Comparator
Overrides:
equals in class java.lang.Object

fileFormattedString

public java.lang.String fileFormattedString()

FissuresFormattedString

public java.lang.String FissuresFormattedString()
format like this..... 20070410T22:53:00.000Z

Returns:
String

formatInt

public java.lang.String formatInt(java.lang.String item,
                                  int places)
Get a string with at least the specified number of places by padded with zero's.

Parameters:
item - the text
place - the number of places

formattedString

public java.lang.String formattedString()

formattedString

public java.lang.String formattedString(int type)

formattedString

public java.lang.String formattedString(java.lang.String name)

get

public int get(int calVal)
Get the value for the given calendar field.

Parameters:
calVal - the calendar field.
Returns:
the value

getEpoch

public double getEpoch()
Get the number of seconds from the epoch time

Returns:
the number seconds from the Epoch time

getGregorianCalendar

public java.util.GregorianCalendar getGregorianCalendar()
Get the GregorianCalendar

Returns:
the GregorianCalendar

getHr

public java.lang.String getHr()
Get the hour of day

Returns:
the hour of day

getIntDOM

public int getIntDOM()
Get the day of month

Returns:
the day of month

getIntDOY

public int getIntDOY()
Get the day of year

Returns:
the day of year

getIntEpoch

public int getIntEpoch()
Deprecated. This only supports up to the year 2038, use getIntEpochSeconds().

Get the number of seconds from the epoch time

Returns:
the number of seconds from the epoch time

getIntEpochMSecs

public long getIntEpochMSecs()
Get the number of milliseconds from the epoch time

Returns:
the number of milliseconds from the epoch time

getIntEpochSeconds

public long getIntEpochSeconds()
Get the number of seconds from the epoch time

Returns:
the number of milliseconds from the epoch time

getIntHr

public int getIntHr()
Get the hour of day.

Returns:
the hour of day

getIntInt

public int getIntInt(int calVal)
Get the value for the given calendar field.

Parameters:
calVal - the calendar field.
Returns:
the value

getIntMn

public int getIntMn()
Get the minute within the hour.

Returns:
the minute within the hour

getIntMonth

public int getIntMonth()
Get the month.

Returns:
the month.

getIntSec

public int getIntSec()
Get the second within the minute.

Returns:
the second within the minute

getIntYear

public int getIntYear()
Get the year

Returns:
the year

getJDay

public java.lang.String getJDay()
Get the text for the day of the year.

Returns:
the text for the day of the year

getLongEpoch

public long getLongEpoch()
Get the number of seconds from the epoch time

Returns:
the number of seconds from the epoch time

getmDay

public int getmDay()
Get the day of month

Returns:
the day of month

getMDay

public java.lang.String getMDay()
Get the month

Returns:
the month

getMessage

public java.lang.String getMessage()
Get the message that some methods leave

Returns:
the message or null if none

getMn

public java.lang.String getMn()
Get the text for the minute within the hour

Returns:
the text for the minute within the hour

getMonStr

public java.lang.String getMonStr()
Get the text for the month

Returns:
the text for the month

getMsecond

public java.lang.String getMsecond(int places)
Get the text for milliseconds

Parameters:
place - the number of places
Returns:
the text for milliseconds

getMSecond

public java.lang.String getMSecond()
Get the text for milliseconds with 3 places

Returns:
the text for milliseconds with 3 places

getSecond

public java.lang.String getSecond()
Get the text for second within the minute

Returns:
the text for second within the minute

getTenthsMillisecond

public java.lang.String getTenthsMillisecond()
Get the text for tenths milliseconds

Returns:
the text for tenths milliseconds

getTime

public java.util.Date getTime()
Get the time

Returns:
the time

getTimeInMillis

public long getTimeInMillis()
Gets the current time as a long.

Returns:
the current time as UTC milliseconds from the epoch, January 1, 1970, 00:00:00.

getTimeZone

public java.util.TimeZone getTimeZone()
Get the time zone

Returns:
the time zone

getYear

public java.lang.String getYear()
Get the text for the year

Returns:
the text for the year

hashCode

public int hashCode()
Returns a hash code value for this object. The result is the exclusive OR of the two halves of the primitive long value returned by the getTime() method. That is, the hash code is the value of the expression: (int)(getTimeInMillis()^(getTimeInMillis() >>> 32))

Overrides:
hashCode in class java.lang.Object
Returns:
a hash code value for this object.

hrminsecmsString

public java.lang.String hrminsecmsString()

hrminsecString

public java.lang.String hrminsecString()

inTimeRange

public boolean inTimeRange(IstiEpoch start,
                           IstiEpoch end)
Determines if this IstiEpoch is in the specified time range.

Returns:
true is this IstiEpoch lies between the 2 argument times inclusive of the end times, false otherwise

isAfter

public boolean isAfter(double rtime)
Determines if this IstiEpoch if after given time

Returns:
true if this IstiEpoch if after given time, false otherwise.

isAfter

public boolean isAfter(IstiEpoch refTime)
Determines if this IstiEpoch if after given time

Returns:
true if this IstiEpoch if after given time, false otherwise

isAfterEqual

public boolean isAfterEqual(IstiEpoch refTime)
Determines if this IstiEpoch if after or equal to the given time

Returns:
true if this IstiEpoch if after or equal to the given time, false otherwise

isAfterNotEqual

public boolean isAfterNotEqual(IstiEpoch refTime)
Determines if this IstiEpoch is after and not equal to the given time

Returns:
true if this IstiEpoch is after and not equal to the given time, false otherwise

isBefore

public boolean isBefore(double rtime)
Determines if this IstiEpoch is before the given time

Returns:
true if this IstiEpoch if before given time, false otherwise

isBefore

public boolean isBefore(IstiEpoch refTime)
Determines if this IstiEpoch is before the given time

Returns:
true if this IstiEpoch if before given time, false otherwise

isBeforeEqual

public boolean isBeforeEqual(IstiEpoch refTime)
Determines if this IstiEpoch is before or equal to the given time

Returns:
true if this IstiEpoch if before or equal to the given time, false otherwise

isBeforeNotEqual

public boolean isBeforeNotEqual(IstiEpoch refTime)
Determines if this IstiEpoch is before and not equal to the given time

Returns:
true if this IstiEpoch if before and not equal to the given time, false otherwise

isEqualTo

public boolean isEqualTo(IstiEpoch refTime)
Determines if this IstiEpoch is equal to the given time

Returns:
true if this IstiEpoch is equal to the given time, false otherwise

isEvenMinute

public boolean isEvenMinute()
Determines if this IstiEpoch is at an even minute

Returns:
true if this IstiEpoch is at an even minute, false otherwise

ISO8601FormattedString

public java.lang.String ISO8601FormattedString()

labelformattedString

public java.lang.String labelformattedString()

longformattedString

public java.lang.String longformattedString()

minsecString

public java.lang.String minsecString()

minus

public void minus(double seconds)
This function subtracts the number of seconds from the time

Parameters:
seconds - the number of seconds

secString

public java.lang.String secString()

set

public void set(int year,
                int month,
                int day,
                int hr,
                int min)
Set everything but the seconds.

Parameters:
year - the year
month - the month
day - the day of year
hr - the hour of day
min - the minute within the hour

setDateToTODAY

public void setDateToTODAY()
trims the time to the start of the current day (leave time alone)


setHr

public void setHr(int hour)
Set the hour of day

Parameters:
hour - the hour of day

setIntTime

public void setIntTime(double seconds)
set time passing in seconds since 1970

Parameters:
seconds - seconds since 1970

setIntTime

public void setIntTime(int seconds)
set time passing in seconds since 1970

Parameters:
seconds - seconds since 1970

setIntTime

public void setIntTime(long seconds)
set time passing in seconds since 1970

Parameters:
seconds - seconds since 1970

setJDay

public void setJDay(int doy)
Set the day of year

Parameters:
doy - the day of year

setmDay

public void setmDay(int day)
Set the day of month

Parameters:
day - the day of month

setMn

public void setMn(int min)
Set the minute within the hour

Parameters:
min - the minute within the hour

setMonth

public void setMonth(int month)
Set the month

Parameters:
month - the month
See Also:

setMSecond

public void setMSecond(int millisecond)
Set the millisecond within the second

Parameters:
millisecond - the millisecond within the second

setSec

public void setSec(int second)
Set the second within the minute

Parameters:
second - the second within the minute

setSecond

public void setSecond(int second)
Set the second within the minute

Parameters:
second - the second within the minute

setTime

public final void setTime(java.util.Calendar calendar)
Set time passing in an existing calendar.

Parameters:
calendar - the calendar.

setTime

public final void setTime(java.util.Date date)
Sets the time.

Parameters:
date - the date.

setTime

public final void setTime(double dsecs)
set time passing in seconds since 1970

Parameters:
dsecs - the seconds since 1970

setTime

public void setTime(int year,
                    int jday,
                    int hr,
                    int min,
                    int sec)
Set the time

Parameters:
year - the year
jday - the day of year
hr - the hour of day
min - the minute within the hour
sec - the second within the minute

setTime

public final void setTime(IstiEpoch epoch)
Set time passing in another Epoch time.

Parameters:
epoch - the epoch time.

setTime

public final void setTime(long msecs)
set time passing in milliseconds since 1970.

Parameters:
msecs - milliseconds since 1970.

setTime

public final void setTime(long seconds,
                          long milliseconds)
set time passing in seconds and milliseconds since 1970

Parameters:
seconds - seconds since 1970.
milliseconds - milliseconds since 1970.

setTime

public final void setTime(java.lang.String respTime)
set time from RESP format string time. YYYY,DDD,HH:MM:SS

Parameters:
respTime - the RESP format string time

setTimeAltFissuresTime

public void setTimeAltFissuresTime(java.lang.String ftime)
accepts the time in the format YYYY-MM-DDTHH:MM:SS.mmmZ

Parameters:
ftime - String

setTimeCanadaTime

public void setTimeCanadaTime(java.lang.String ftime)
accepts the time in the format YYYYMMDD.HHMM

Parameters:
ftime - String

setTimeFissuresTime

public void setTimeFissuresTime(java.lang.String ftime)
accepts the time in the format YYYY-MM-DDTHH:MM:SS.mmmZ

Parameters:
ftime - String

setTimeInMillis

public final void setTimeInMillis(long millis)
Sets the current time from the given long value.

Parameters:
millis - the new time in UTC milliseconds from the epoch, January 1, 1970, 00:00:00.

setTimetoDay

public void setTimetoDay()
trims the time to the start of the current day


setTimetoDay

public void setTimetoDay(IstiEpoch epoch)
trims the time to the start of the desired day

Parameters:
epoch - the epoch time

settoCurrentTime

public IstiEpoch settoCurrentTime()
Set to the current time.

Returns:
this epoch time

setYear

public void setYear(int year)
Set the year

Parameters:
year - the year

toString

public java.lang.String toString()
Get a string representation of the epoch

Overrides:
toString in class java.lang.Object
Returns:
a string representation of the epoch

toWaveviewerRequestString

public java.lang.String toWaveviewerRequestString()

yeardayString

public java.lang.String yeardayString()

yearmondayhrminString

public java.lang.String yearmondayhrminString()

yearmondayString

public java.lang.String yearmondayString()

getFormattedStrings

public static java.lang.String[] getFormattedStrings()

getFormatType

public static java.lang.String getFormatType(int type)

main

public static void main(java.lang.String[] args)

toString

public static java.lang.String toString(double seconds)
Get a string representation for the time

Parameters:
seconds - the seconds from the Epoch time
Returns:
a string representation for the time