|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.norther.tammi.acorn.lang.StringDate
public class StringDate
A string representation of date in ISO-8601 format.
| Field Summary | |
|---|---|
static int |
DATE_MASK
The date mask. |
static int |
DATE_TIME_MASK
The void mask. |
static int |
TIME_MASK
The time mask. |
| Constructor Summary | |
|---|---|
StringDate(CharSequence date)
Constructs a new date from a string in ISO-8601 format. |
|
StringDate(Date date)
Constructs a new date from java.util.Date. |
|
StringDate(int y,
int m,
int d,
int hh,
int mm,
int ss,
int mask)
Constructs a new date from date items. |
|
| Method Summary | |
|---|---|
char |
charAt(int index)
|
int |
getDay()
Gets the day. |
int |
getHour()
Gets the hour. |
int |
getMinute()
Gets the minute. |
int |
getMonth()
Gets the month. |
int |
getRelativeMask()
Gets the mask of relative date items. |
int |
getSecond()
Gets the second. |
int |
getYear()
Gets the year. |
int |
length()
|
CharSequence |
subSequence(int start,
int end)
|
Date |
toDate(Calendar calendar)
Returns a date represention. |
String |
toString()
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
public static final int DATE_MASK
public static final int TIME_MASK
public static final int DATE_TIME_MASK
| Constructor Detail |
|---|
public StringDate(CharSequence date)
date - the string.public StringDate(Date date)
java.util.Date.
date - the date.
public StringDate(int y,
int m,
int d,
int hh,
int mm,
int ss,
int mask)
y - the year.m - the month.d - the day.hh - the hour.mm - the minute.ss - the second.mask - the relative items mask.| Method Detail |
|---|
public int length()
length in interface CharSequencepublic char charAt(int index)
charAt in interface CharSequence
public CharSequence subSequence(int start,
int end)
subSequence in interface CharSequencepublic String toString()
toString in interface CharSequencetoString in class Objectpublic int getYear()
public int getMonth()
public int getDay()
public int getHour()
public int getMinute()
public int getSecond()
public int getRelativeMask()
public Date toDate(Calendar calendar)
calendar - the calendar to apply.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||