public class Localtime
extends Object
Constructor and Description |
---|
Localtime()
Capture a high resolution clock value for the current time.
|
Modifier and Type | Method and Description |
---|---|
int |
day() |
int |
dayOfYear() |
Calendar |
getCalendar() |
Date |
getDate() |
long |
getPosixSeconds() |
String |
hhmmss()
the time as HHmmss
|
int |
hour() |
int |
micros() |
int |
millis() |
int |
minute() |
int |
month() |
int |
second() |
String |
toString() |
String |
ts()
"yyyy-MM-dd HH:mm:ss" in the local timezone
|
String |
tsIso()
Obtain an ISO 8601 timestamp string.
|
String |
tsu()
"yyyy-MM-dd HH:mm:ss.uuuuuu" in the local timezone
|
String |
tsUTC()
"yyyy-MM-dd HH:mm:ss" for UTC timezone
|
String |
tsuUTC()
"yyyy-MM-dd HH:mm:ss.uuuuuu" for UTC timezone (aka GMT)
|
int |
year() |
String |
yyyymmdd() |
public Localtime()
public int day()
public int dayOfYear()
public Calendar getCalendar()
public Date getDate()
public long getPosixSeconds()
public String hhmmss()
public int hour()
public int micros()
public int millis()
public int minute()
public int month()
public int second()
public String toString()
toString
in class Object
public String ts()
public String tsIso()
"yyyy-MM-ddTHH:mm:ss.mmmmmmZ" for the UTC timezone (aka GMT)
The text is 27 characters long: yyyy-MM-ddTHH:mm:ss.mmmmmmZ 012345678901234567890123456
public String tsu()
public String tsUTC()
public String tsuUTC()
public int year()
public String yyyymmdd()