![]() | [using it] | Interface Manipulation Package v4.0 (2008-06-25) | ![]() | ©copyright | ![]() |
java.lang.Objectimp.core.Value
imp.core.Time
public class Time
Implements a date/time value.
Field Summary |
---|
Fields inherited from class imp.core.Value |
---|
NULL |
Method Summary | |
---|---|
int |
getDay()
Gets the date day of month. |
int |
getHour()
Gets the time hour of day. |
int |
getMinute()
Gets the time minute. |
int |
getMonth()
Gets the date month. |
int |
getSecond()
Gets the time second. |
long |
getValue()
Gets the date/time value. |
int |
getWeekDay()
Gets the date day of week. |
int |
getYear()
Gets the date year. |
Time |
setFormat(String format)
Sets the date/time format and return this. |
Time |
setLocalization(String localization)
Sets the date/time localization and return this. |
Time |
setValue(String time,
boolean standard)
Sets the date/time from the string and return this. |
Methods inherited from class imp.core.Value |
---|
add, cloneThis, create, elements, fields, get, getType, getWrapping, isCyclic, isName, length, load, main, save, set, toString, wrappedObject |
Methods inherited from class java.lang.Object |
---|
getClass, notify, notifyAll, wait, wait, wait |
Method Detail |
---|
public int getDay()
public int getHour()
public int getMinute()
public int getMonth()
public int getSecond()
public long getValue()
public int getWeekDay()
public int getYear()
public Time setFormat(String format)
format
- [optional, default is date-time:standard] A string of the form date:verbosity, time:verbosity or date-time:verbosity
where verbosity defines the string representation, either standard, numeric, short, long, full.public Time setLocalization(String localization)
localization
- [optional, default is null for default locale]
A string of the form language_country:zone, language_country, language:zone, language or :zone
(e.g. en_US:America/Chicago) where the The language is a lowercase two-letter ISO-639 code. |
The country is an uppercase two-letter ISO-3166 code. |
The zone is either a time-zone abbreviation such as "PST", or a full name such as "America/Chicago", or a custom ID such as "GMT-8:00". |
public Time setValue(String time, boolean standard)
time
- The date/time value using the locale format. standard
- [optional, default is false] If true uses the standard format to set the value.