| Package | Description |
|---|---|
| rs.baselib.io |
Provides I/O utilities, such as converting from/into bytes and finding resources.
|
| rs.baselib.lang |
Provides support for Java language-specific issues.
|
| rs.baselib.util |
Provides several utility classes.
|
| Modifier and Type | Method and Description |
|---|---|
static RsDate |
ConverterUtils.toRsDate(byte[] bytes)
Converts the given bytes to Date.
|
static RsDate |
ConverterUtils.toRsDay(byte[] bytes)
Converts the given bytes to Day.
|
| Modifier and Type | Method and Description |
|---|---|
static byte[] |
ConverterUtils.toBytes(RsDate param)
Converts the given parameter to its byte representation.
|
| Modifier and Type | Method and Description |
|---|---|
static RsDate |
LangUtils.getRsDate(Object o)
Converts the object to a
RsDate. |
static RsDate |
LangUtils.getRsDate(Object o,
DateFormat format)
Converts the object to a
RsDate. |
static RsDate |
LangUtils.getRsDate(Object o,
DateFormat[] formats)
Returns the date using the first
DateFormat that produces a result. |
static RsDate |
LangUtils.getRsDate(Object o,
DateFormat[] formats,
RsDate defaultValue)
Returns the date using the first
DateFormat that produces a result. |
static RsDate |
LangUtils.getRsDate(Object o,
DateFormat format,
RsDate defaultValue)
Converts the object to a
RsDate. |
static RsDate |
LangUtils.getRsDate(Object o,
DateFormat format,
RsDate defaultValue,
boolean logError)
Converts the object to a
RsDate. |
| Modifier and Type | Method and Description |
|---|---|
static RsDate |
LangUtils.getRsDate(Object o,
DateFormat[] formats,
RsDate defaultValue)
Returns the date using the first
DateFormat that produces a result. |
static RsDate |
LangUtils.getRsDate(Object o,
DateFormat format,
RsDate defaultValue)
Converts the object to a
RsDate. |
static RsDate |
LangUtils.getRsDate(Object o,
DateFormat format,
RsDate defaultValue,
boolean logError)
Converts the object to a
RsDate. |
| Modifier and Type | Class and Description |
|---|---|
class |
RsDay
A day.
|
class |
RsMonth
A month.
|
class |
RsYear
A year.
|
| Modifier and Type | Method and Description |
|---|---|
static RsDate |
RsDate.get(Date date)
Create a date of given timestamp or null.
|
static RsDate |
RsDate.get(long timestamp)
Create a date of given timestamp or null.
|
static RsDate |
RsDate.get(Timestamp timestamp)
Create a date of given timestamp or null.
|
RsDate |
RsYear.getBegin()
Returns the begin of this month.
|
RsDate |
RsMonth.getBegin()
Returns the begin of this month.
|
RsDate |
RsDay.getBegin()
Returns the begin of this month.
|
RsDate |
ReleaseInformation.getBuildDate()
Returns the buildDate.
|
RsDate |
RsYear.getEnd()
Returns the end of this month.
|
RsDate |
RsMonth.getEnd()
Returns the end of this month.
|
RsDate |
RsDay.getEnd()
Returns the end of this month.
|
RsDate |
DateTimePeriod.getFrom()
Returns the from.
|
RsDate |
ReleaseInformation.getSvnCommittedDate()
Returns the svnCommittedDate.
|
RsDate |
DateTimePeriod.getUntil()
Returns the until.
|
| Modifier and Type | Method and Description |
|---|---|
static long |
CommonUtils.getUnixTimestamp(RsDate date)
Returns the given date as UNIX timestamp.
|
boolean |
DateTimePeriod.isIn(RsDate date)
Tells whether date is in this range.
|
void |
ReleaseInformation.setBuildDate(RsDate buildDate)
Sets the buildDate.
|
void |
DateTimePeriod.setFrom(RsDate from)
Sets the from.
|
void |
ReleaseInformation.setSvnCommittedDate(RsDate svnCommittedDate)
Sets the svnCommittedDate.
|
void |
DateTimePeriod.setUntil(RsDate until)
Sets the until.
|
static String |
CommonUtils.toString(RsDate date)
Formats the given date.
|
| Constructor and Description |
|---|
DateTimePeriod(RsDate from,
long duration)
Constructor.
|
DateTimePeriod(RsDate from,
RsDate until)
Constructor.
|
Copyright © 2014. All rights reserved.