net.sf.bt747.j2se.system
Class J2SEDate

java.lang.Object
  extended by net.sf.bt747.j2se.system.J2SEDate
All Implemented Interfaces:
BT747Date

public final class J2SEDate
extends java.lang.Object
implements BT747Date

Author:
Mario De Weerd TODO To change the template for this generated type comment go to Window - Preferences - Java - Code Style - Code Templates

Constructor Summary
J2SEDate()
           
J2SEDate(java.util.Date d)
           
J2SEDate(int sentDate)
           
J2SEDate(int sentDay, int sentMonth, int sentYear)
           
J2SEDate(J2SEDate d)
           
J2SEDate(java.lang.String strDate)
           
J2SEDate(java.lang.String strDate, byte dateFormat)
           
 
Method Summary
 void advance(int s)
          Advance the time.
 int dateToUTCepoch1970()
          Return the date in the format usually used in the GPS devices: number of seconds since the epoch 1970.
 java.lang.String getDateString()
           
 int getDay()
           
 int getJulianDay()
           
 int getMonth()
           
 java.util.Date getTime()
           
 int getYear()
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

J2SEDate

public J2SEDate()

J2SEDate

public J2SEDate(int sentDate)
Parameters:
sentDate -

J2SEDate

public J2SEDate(int sentDay,
                int sentMonth,
                int sentYear)
Parameters:
sentDay -
sentMonth -
sentYear -

J2SEDate

public J2SEDate(java.lang.String strDate)
Parameters:
strDate -

J2SEDate

public J2SEDate(java.lang.String strDate,
                byte dateFormat)
Parameters:
strDate -
dateFormat -

J2SEDate

public J2SEDate(java.util.Date d)

J2SEDate

public J2SEDate(J2SEDate d)
Method Detail

advance

public void advance(int s)
Advance the time.

Specified by:
advance in interface BT747Date
Parameters:
s - The number of seconds to advance.

getTime

public java.util.Date getTime()

dateToUTCepoch1970

public final int dateToUTCepoch1970()
Description copied from interface: BT747Date
Return the date in the format usually used in the GPS devices: number of seconds since the epoch 1970.

Specified by:
dateToUTCepoch1970 in interface BT747Date
Returns:
number of seconds since the epoch.

getDateString

public java.lang.String getDateString()
Specified by:
getDateString in interface BT747Date

getJulianDay

public final int getJulianDay()

getYear

public final int getYear()
Specified by:
getYear in interface BT747Date

getMonth

public final int getMonth()
Specified by:
getMonth in interface BT747Date

getDay

public final int getDay()
Specified by:
getDay in interface BT747Date