public class Btime
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
int |
hour |
int |
jday |
int |
min |
int |
sec |
int |
tenthMilli |
static java.util.TimeZone |
UTC |
int |
year |
Constructor and Description |
---|
Btime() |
Btime(byte[] bytes) |
Btime(byte[] bytes,
int offset) |
Btime(java.util.Date date) |
Btime(double d)
Create with seconds since epoch (1970)
|
Btime(int year,
int jday,
int hour,
int min,
int sec,
int tenthMilli) |
Modifier and Type | Method and Description |
---|---|
boolean |
after(Btime other) |
boolean |
afterOrEquals(Btime other) |
boolean |
before(Btime other) |
java.util.Calendar |
convertToCalendar() |
boolean |
equals(java.lang.Object o) |
byte[] |
getAsBytes() |
int |
getDayOfYear() |
int |
getHour() |
int |
getJDay() |
int |
getMin() |
int |
getSec() |
int |
getTenthMilli() |
int |
getYear() |
int |
hashCode() |
static boolean |
shouldSwapBytes(byte[] btime)
Expects btime to be a byte array pointing at the beginning of a btime
segment
|
static boolean |
shouldSwapBytes(byte[] btime,
int offset)
Expects btime to be a byte array pointing at the beginning of a btime
segment.
|
java.lang.String |
toString() |
public static final java.util.TimeZone UTC
public int year
public int jday
public int hour
public int min
public int sec
public int tenthMilli
public Btime(java.util.Date date)
public Btime()
public Btime(int year, int jday, int hour, int min, int sec, int tenthMilli)
public Btime(byte[] bytes)
public Btime(byte[] bytes, int offset)
public Btime(double d)
public int hashCode()
hashCode
in class java.lang.Object
public boolean equals(java.lang.Object o)
equals
in class java.lang.Object
public boolean before(Btime other)
public boolean after(Btime other)
public boolean afterOrEquals(Btime other)
public java.util.Calendar convertToCalendar()
public java.lang.String toString()
toString
in class java.lang.Object
public int getYear()
public int getDayOfYear()
public int getJDay()
public int getHour()
public int getMin()
public int getSec()
public int getTenthMilli()
public static boolean shouldSwapBytes(byte[] btime)
public static boolean shouldSwapBytes(byte[] btime, int offset)
public byte[] getAsBytes()