|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.pixelmed.utils.DateUtilities
public class DateUtilities
Various static methods helpful for handling dates.
| Field Summary | |
|---|---|
static DecimalFormat |
threeDigitZeroPaddedFormat
|
static SimpleDateFormat |
yyyymmddFormat
|
| Method Summary | |
|---|---|
static String |
getAgeBetweenAsDICOMAgeString(Calendar earlierDate,
Calendar laterDate)
Get a DICOM Age String (AS) VR form age between two dates. |
static String |
getAgeBetweenAsDICOMAgeString(Date earlierDate,
Date laterDate)
Get a DICOM Age String (AS) VR form age between two dates. |
static String |
getAgeBetweenAsDICOMAgeString(String earlierDate,
String laterDate)
Get a DICOM Age String (AS) VR form age between two dates. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static SimpleDateFormat yyyymmddFormat
public static DecimalFormat threeDigitZeroPaddedFormat
| Method Detail |
|---|
public static String getAgeBetweenAsDICOMAgeString(String earlierDate,
String laterDate)
throws ParseException,
IllegalArgumentException
Get a DICOM Age String (AS) VR form age between two dates.
Uses UK (not US) convention for leap year birthdays (earlierDate).
earlierDate - for example, the date of birthlaterDate - for example, the current date
ParseException - if one of the dates is not in the correct form
IllegalArgumentException - if the later date is earlier than the earlier date
public static String getAgeBetweenAsDICOMAgeString(Date earlierDate,
Date laterDate)
throws IllegalArgumentException
Get a DICOM Age String (AS) VR form age between two dates.
Uses UK (not US) convention for leap year birthdays (earlierDate).
earlierDate - for example, the date of birthlaterDate - for example, the current date
IllegalArgumentException - if the later date is earlier than the earlier date
public static String getAgeBetweenAsDICOMAgeString(Calendar earlierDate,
Calendar laterDate)
throws IllegalArgumentException
Get a DICOM Age String (AS) VR form age between two dates.
Uses UK (not US) convention for leap year birthdays (earlierDate).
earlierDate - for example, the date of birthlaterDate - for example, the current date
IllegalArgumentException - if the later date is earlier than the earlier date
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||