public class DicomDateTime extends java.lang.Object implements java.lang.Comparable<DicomDateTime>
Constructor and Description |
---|
DicomDateTime(int hours,
int minutes,
int seconds,
int micros) |
DicomDateTime(int year,
int month,
int date,
int hours,
int minutes,
int seconds,
int micros) |
Modifier and Type | Method and Description |
---|---|
void |
addTimeHours(int hours)
Adds time in hours to the current date/time
|
void |
addTimeMicros(int micros)
Adds time in microseconds to the current date/time
|
void |
addTimeMinutes(int minutes)
Adds time in minutes to the current date/time
|
void |
addTimeSeconds(int seconds)
Adds time in seconds to the current date/time
|
int |
compareTo(DicomDateTime o) |
long |
epoch()
Returns the number of seconds since January 1, 1970 UTC
|
java.util.GregorianCalendar |
getCalendar()
Returns a calender representation of the date/time
(only includes up to floor(seconds)).
|
long |
microseconds()
Returns the number of MICROseconds since January 1, 1970 UTC
|
public DicomDateTime(int hours, int minutes, int seconds, int micros)
public DicomDateTime(int year, int month, int date, int hours, int minutes, int seconds, int micros)
public void addTimeMicros(int micros)
micros
- microseconds to addpublic void addTimeSeconds(int seconds)
public void addTimeMinutes(int minutes)
public void addTimeHours(int hours)
public int compareTo(DicomDateTime o)
compareTo
in interface java.lang.Comparable<DicomDateTime>
public long microseconds()
public long epoch()
public java.util.GregorianCalendar getCalendar()