|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.azalient.apo.basics.UTime
public class UTime
A time value, formatted to hours, minutes, seconds and milliseconds for display when required.
This class is much smaller than java.util.Date.
| Nested Class Summary | |
|---|---|
static class |
UTime.Format
|
| Field Summary | |
|---|---|
static double |
eINFS
|
static UTime.Format |
HHMM
|
static UTime.Format |
HHMMSS
|
static UTime |
INF
|
static double |
INFS
|
static UTime.Format |
MMSS
|
static UTime |
ZERO
|
| Constructor Summary | |
|---|---|
UTime(double seconds)
|
|
UTime(double seconds,
UTime.Format format)
|
|
UTime(int hours,
int minutes,
int seconds)
|
|
UTime(int hours,
int minutes,
int seconds,
UTime.Format fmt)
|
|
UTime(UTime.Format format,
double seconds)
|
|
UTime(UTime that)
|
|
| Method Summary | |
|---|---|
static String |
asTimeFileName(int t)
|
int |
day()
|
boolean |
equals(UTime that)
|
int |
hour()
Return the whole number of hours, in range 0 to 23 |
void |
inc(double step)
|
int |
minute()
Return the whole number of minutes, in range 0 to 59 |
int |
ms()
Return the whole number of milliseconds, in range 0 to 999 |
static UTime |
newTime(UTime time1,
UTime time2)
|
static UTime |
parse(UTime.Format format,
String text)
|
double |
parseDouble(String text)
|
static double |
parseDouble(UTime.Format format,
String text)
|
int |
parseInt(String text)
|
static int |
parseInt(UTime.Format format,
String text)
|
int |
second()
Return the whole number of seconds, in range 0 to 59 |
void |
set(double seconds)
|
void |
set(int seconds)
|
void |
set(int minutes,
int seconds)
|
void |
set(int hours,
int minutes,
int seconds)
|
void |
set(int days,
int hours,
int minutes,
int seconds)
|
void |
set(int year,
int days,
int hours,
int minutes,
int seconds)
|
void |
set(String text)
|
void |
set(UTime t)
|
double |
time()
|
int |
timeInt()
|
static String |
timeStr(double sec)
|
String |
toString()
|
String |
toString(Boolean showMS)
|
String |
toString(Boolean showMS,
boolean showDays)
|
String |
toString(Boolean showMS,
boolean showDays,
boolean showYearsDays)
|
String |
toString(UTime.Format format,
Boolean showMS)
|
String |
toString(UTime.Format format,
Boolean showMS,
boolean showDays)
|
String |
toString(UTime.Format format,
Boolean showMS,
boolean showDays,
boolean showYearsDays)
|
String |
toStringTimeOfDay(boolean useAMPM,
boolean showMS)
Override standard implementation get AM or PM displayed (for US times). |
int |
year()
|
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
public static final UTime ZERO
public static final double INFS
public static final double eINFS
public static final UTime INF
public static final UTime.Format HHMMSS
public static final UTime.Format HHMM
public static final UTime.Format MMSS
| Constructor Detail |
|---|
public UTime(UTime.Format format,
double seconds)
public UTime(double seconds,
UTime.Format format)
public UTime(double seconds)
public UTime(int hours,
int minutes,
int seconds,
UTime.Format fmt)
public UTime(int hours,
int minutes,
int seconds)
public UTime(UTime that)
| Method Detail |
|---|
public int year()
public int day()
public int hour()
public int minute()
public int second()
public int ms()
public void set(UTime t)
public void set(int seconds)
public void inc(double step)
public void set(double seconds)
public double time()
public int timeInt()
public void set(int minutes,
int seconds)
public void set(int hours,
int minutes,
int seconds)
public void set(int days,
int hours,
int minutes,
int seconds)
public void set(int year,
int days,
int hours,
int minutes,
int seconds)
public void set(String text)
public int parseInt(String text)
public double parseDouble(String text)
public static String timeStr(double sec)
public static String asTimeFileName(int t)
public static UTime newTime(UTime time1,
UTime time2)
public static UTime parse(UTime.Format format,
String text)
public static int parseInt(UTime.Format format,
String text)
public static double parseDouble(UTime.Format format,
String text)
public String toString()
toString in class Objectpublic String toString(Boolean showMS)
showMS - set to null to show ms only if non-zero
public String toString(Boolean showMS,
boolean showDays)
public String toString(Boolean showMS,
boolean showDays,
boolean showYearsDays)
public String toString(UTime.Format format,
Boolean showMS)
public String toString(UTime.Format format,
Boolean showMS,
boolean showDays)
public String toString(UTime.Format format,
Boolean showMS,
boolean showDays,
boolean showYearsDays)
public String toStringTimeOfDay(boolean useAMPM,
boolean showMS)
public boolean equals(UTime that)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||