|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectto.etc.util.CalculationUtil
public class CalculationUtil
Method Summary | |
---|---|
static int |
age(java.util.Date d)
|
static int |
ageOn(java.util.Date today,
java.util.Date birthdate)
Calculates the age of something on a specified date. |
static java.math.BigDecimal |
convertToMoney(java.util.Locale loc,
java.lang.String s)
Convert to a monetary amount. |
static java.lang.String |
convertToMoneyString(java.util.Locale loc,
java.math.BigDecimal n,
boolean dofraction,
boolean addmonetary)
|
static java.util.Date |
date(java.lang.String str)
Convert a date string in the format yyyy mm dd (with any separators) to a date value. |
static java.util.Date |
dutchDate(java.lang.String s)
Converts a string to a java.util.Date object. |
static java.util.Date |
dutchDateRAW(java.lang.String s)
Converts a string to a java.util.Date object. |
static java.lang.String[] |
getDutchMonthShorts()
|
static boolean |
isFutureDate(java.util.Date a)
|
static void |
main(java.lang.String[] args)
|
static java.util.Date |
makeDate(int year,
int month,
int day)
|
static java.util.Date |
makeDateRAW(int year,
int month,
int day)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
---|
public static final java.lang.String[] getDutchMonthShorts()
public static int ageOn(java.util.Date today, java.util.Date birthdate)
today
- birthdate
-
java.lang.Exception
public static int age(java.util.Date d)
public static java.util.Date date(java.lang.String str) throws java.lang.Exception
str
-
java.lang.Exception
public static java.util.Date dutchDate(java.lang.String s) throws java.lang.Exception
java.lang.Exception
public static java.util.Date dutchDateRAW(java.lang.String s)
public static java.util.Date makeDate(int year, int month, int day) throws java.lang.Exception
java.lang.Exception
public static java.util.Date makeDateRAW(int year, int month, int day)
public static boolean isFutureDate(java.util.Date a)
public static java.math.BigDecimal convertToMoney(java.util.Locale loc, java.lang.String s) throws javax.servlet.jsp.el.ELException
loc
- s
-
javax.servlet.jsp.el.ELException
public static java.lang.String convertToMoneyString(java.util.Locale loc, java.math.BigDecimal n, boolean dofraction, boolean addmonetary)
public static void main(java.lang.String[] args)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |