|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object
com.thortech.xl.util.adapters.tcUtilDateOperations
public class tcUtilDateOperations
This class that has basic date operations utility methods. Author: Solomon Niyazov January 28, 2002. updated by Stanislav Sadykov on July 12, 2002 updated by Stanislav Sadykov on January 24, 2003
Constructor Summary | |
---|---|
tcUtilDateOperations() Creates a new tcUtilDateOperations object. |
|
tcUtilDateOperations(java.util.Date obj) Constructor uses existing Date |
Method Summary | |
---|---|
static java.util.Date |
addDaysToCurrentDate(int pnNumOfDays) Adds a specifed number of days to the current date |
static long |
getCurrentDate() method returns current date based on System.currentTimeMillis(). |
java.util.Date |
getDate() return Date |
java.lang.String |
getDayOfMonth() Returns the Day Of the Month |
java.lang.String |
getHours() Returns the Hors from the date |
int |
getIntDayOfMonth() Returns the Day of the Month |
int |
getIntHours() Returns the Hours from the Date |
int |
getIntMinutes() Returns Minutes from the Date |
int |
getIntMonth() Returns the Month of the year |
int |
getIntSeconds() Returns Seconds from the Date |
int |
getIntYear() Returns the Year |
java.lang.String |
getMinutes() Returns Minutes from the Date |
java.lang.String |
getMonth() Returns the Month of the Year |
java.lang.String |
getSeconds() Returns Seconds from the Date |
java.lang.String |
getString() Returns the Date as String |
long |
getTime() Returns the date in the long format |
java.lang.String |
getTimeAsOctalString() Returns the date as Octal String |
java.lang.String |
getTimeLongAsString() Returns the Date in Long Format as String type |
java.lang.String |
getYear() Returns the Year |
static java.lang.String |
parseCurrentTimeWithFormat(java.lang.String format) method returns current date based on the specified format. |
static java.lang.String |
parseCurrentTimeWithFormatAndTimeZone(java.lang.String format, java.lang.String timeZone) method returns current date based on the specified format and timezone. |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public tcUtilDateOperations()
public tcUtilDateOperations(java.util.Date obj)
obj
-Method Detail |
---|
public static java.util.Date addDaysToCurrentDate(int pnNumOfDays)
pnNumOfDays
- number of days to be added to the current datepublic java.util.Date getDate()
public long getTime()
public java.lang.String getTimeLongAsString()
public java.lang.String getTimeAsOctalString()
public java.lang.String getString()
public int getIntDayOfMonth()
public java.lang.String getDayOfMonth()
public int getIntMonth()
public java.lang.String getMonth()
public int getIntYear()
public java.lang.String getYear()
public int getIntHours()
public java.lang.String getHours()
public int getIntMinutes()
public java.lang.String getMinutes()
public int getIntSeconds()
public java.lang.String getSeconds()
public static long getCurrentDate()
public static java.lang.String parseCurrentTimeWithFormat(java.lang.String format)
format
- for formatting the datepublic static java.lang.String parseCurrentTimeWithFormatAndTimeZone(java.lang.String format, java.lang.String timeZone)
format
- Format in which date is to be formattedtimeZone
- TimeZone to be used
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |