|
SuanShu, a Java numerical and statistical library | |||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||
java.lang.Objectcom.numericalmethod.suanshu.time.JodaTimeUtils
public class JodaTimeUtils
| Field Summary | |
|---|---|
static org.joda.time.DateTime |
BEGINNING_OF_TIME
This represents a time before all (representable) times. |
static long |
BEGINNING_OF_TIME_LONG
This represents a time before all (representable) times, in long representation. |
static org.joda.time.DateTime |
ENDING_OF_TIME
This represents a time after all (representable) times. |
static long |
ENDING_OF_TIME_LONG
This represents a time after all (representable) times, in long representation. |
static org.joda.time.DateTimeZone |
EST
EST |
static org.joda.time.DateTimeZone |
GMT
GMT |
static org.joda.time.DateTimeZone |
HONG_KONG
Hong Kong |
static org.joda.time.DateTimeZone |
LONDON
London |
static org.joda.time.DateTimeZone |
NY
New York |
static org.joda.time.DateTime |
ORIGIN
a reference time "origin": 1970 January 1, midnight, UTC I |
static org.joda.time.DateTimeZone |
PARIS
Paris |
static org.joda.time.DateTimeZone |
TOKYO
Tokyo |
| Method Summary | |
|---|---|
static org.joda.time.DateTime |
getDate(int year,
int month,
int day,
org.joda.time.DateTimeZone tz)
Construct a DateTime object with year, month, day, and time zone. |
static org.joda.time.DateTime |
getDateTime(java.lang.String str)
Construct a DateTime object from a String which ends in TimeZone specification. |
static org.joda.time.DateTime |
getDateTime(java.lang.String str,
java.text.DateFormat format,
org.joda.time.DateTimeZone tz)
Construct a DateTime object from a String with no TimeZone specified in the String |
static org.joda.time.DateTime |
nextWeekDay(org.joda.time.DateTime time)
Get the next weekday, i.e., skipping Saturdays and Sundays. |
static org.joda.time.DateTime |
previousWeekDay(org.joda.time.DateTime time)
Get the previous weekday, i.e., skipping Saturdays and Sundays. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final org.joda.time.DateTimeZone NY
public static final org.joda.time.DateTimeZone LONDON
public static final org.joda.time.DateTimeZone PARIS
public static final org.joda.time.DateTimeZone TOKYO
public static final org.joda.time.DateTimeZone HONG_KONG
public static final org.joda.time.DateTimeZone GMT
public static final org.joda.time.DateTimeZone EST
public static final org.joda.time.DateTime ORIGIN
public static final org.joda.time.DateTime BEGINNING_OF_TIME
public static final long BEGINNING_OF_TIME_LONG
public static final org.joda.time.DateTime ENDING_OF_TIME
public static final long ENDING_OF_TIME_LONG
| Method Detail |
|---|
public static org.joda.time.DateTime getDate(int year,
int month,
int day,
org.joda.time.DateTimeZone tz)
year - yearmonth - month of the yearday - day of the monthtz - time zone
public static org.joda.time.DateTime getDateTime(java.lang.String str)
throws java.text.ParseException
str - the date-time string
java.text.ParseException
public static org.joda.time.DateTime getDateTime(java.lang.String str,
java.text.DateFormat format,
org.joda.time.DateTimeZone tz)
throws java.text.ParseException
str - the date-time stringformat - the formattertz - the time zone; null if default time zone
java.text.ParseExceptionpublic static org.joda.time.DateTime nextWeekDay(org.joda.time.DateTime time)
time - a DateTime
public static org.joda.time.DateTime previousWeekDay(org.joda.time.DateTime time)
time - a DateTime
|
SuanShu, a Java numerical and statistical library | |||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||