|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectmodel.GoDate
public class GoDate
Class GoDate is used to parse and store dates used by the program. Also provides static methods that can be used to print the system date and/or time.
Field Summary | |
---|---|
private java.util.Date |
date
|
private static java.lang.String[] |
date_formats
|
Constructor Summary | |
---|---|
GoDate(java.lang.String date_str)
Constructor tries to parse a new GoDate object from the parameter string |
Method Summary | |
---|---|
static java.lang.String |
getDateAndTimeString()
Method for getting the system date and time. |
static java.lang.String |
getDateString()
Method for getting the system date. |
static java.lang.String |
getTimeString()
Method for getting the system time. |
java.lang.String |
toString()
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
private transient java.util.Date date
private static java.lang.String[] date_formats
Constructor Detail |
---|
public GoDate(java.lang.String date_str) throws ParseGoDateException
date_str
- is converted to a GoDate object
ParseGoDateException
- thrown if the parameter string cannot be parsed as a GoDate objectMethod Detail |
---|
public java.lang.String toString()
toString
in class java.lang.Object
public static java.lang.String getDateString()
public static java.lang.String getTimeString()
public static java.lang.String getDateAndTimeString()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |