|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.ipdr.utils.TimeUtil
public class TimeUtil
This class is added to include the method for conversion of seconds / milliseconds / microseconds to prescribed formats in XML and back.
Constructor Summary | |
---|---|
TimeUtil()
|
Method Summary | |
---|---|
static int |
convDateTimeToInt(java.lang.String strDateTime)
This method takes the time in the form of DateTime string format as per pattern specified in the NDM-U 3.0 specification as input and converts it into long data type. |
static java.lang.String |
convIntToDateTime(int timeSec)
This method takes the time in the form of long data type as input and converts it into string format as per pattern specified in the NDM-U 3.0 specification. |
static java.lang.String |
convLongToMSec(long timeMilliSec)
This method takes the time (in milliseconds) in the form of long data type as input and converts it into string format as per pattern specified in the NDM-U 3.0 specification. |
static java.lang.String |
convLongToUSec(long microSec)
This method takes the time (in microseconds) in the form of long data type as input and converts it into string format as per pattern specified in the NDM-U 3.5 specification. |
static long |
convMSecToLong(java.lang.String strTime)
This method takes the time in the form of string format as per pattern specified in the NDM-U 3.0 specification as input and converts it into milliseconds specified by a long data type. |
static long |
convUSecToLong(java.lang.String strTime)
This method takes the time in the form of string format as per pattern specified in the NDM-U 3.5 specification as input and converts it into microseconds specified by a long data type. |
protected static int |
dateValidation(java.lang.String date)
This method takes date String as specified in NDM-U 3.0 as input and checks for valid date and valid time. |
protected static int |
daysInFeb(int year)
This method takes year as input parameter and returns number of days in a leap year for the month of February. |
protected static int |
getDaysOfMonth(int month,
int year)
This method takes month and year as input parameter and returns number of days in the month. |
protected static int |
isValidDate(java.lang.String date)
This method takes date String as specified in NDM-U 3.0 as input and checks for valid date and valid time. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public TimeUtil()
Method Detail |
---|
public static java.lang.String convLongToMSec(long timeMilliSec)
timeMilliSec
- Time as long data type
public static long convMSecToLong(java.lang.String strTime) throws IPDRException
strTime
- Time in String format
IPDRException
public static java.lang.String convIntToDateTime(int timeSec)
timeSec
- Time as long data type
public static int convDateTimeToInt(java.lang.String strDateTime) throws IPDRException
strDateTime
- Time in String format
IPDRException
public static java.lang.String convLongToUSec(long microSec)
microSec
- Time as long data type
public static long convUSecToLong(java.lang.String strTime) throws IPDRException
strTime
- Time in String format
IPDRException
protected static int isValidDate(java.lang.String date) throws IPDRException
date
- Date String as specified in NDM-U 3.0
IPDRException
protected static int dateValidation(java.lang.String date) throws IPDRException
date
- Date String as specified in NDM-U 3.0
IPDRException
protected static int getDaysOfMonth(int month, int year)
month
- Month as integeryear
- Year as integer
protected static int daysInFeb(int year)
year
- Year as integer
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |