|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.atlassian.jira.functest.framework.util.date.DateUtil
public class DateUtil
Some utility methods for manipulating dates in functional tests.
This is often required to make sure that func tests run okay when executed in different time zones.
Constructor Summary | |
---|---|
DateUtil()
|
Method Summary | |
---|---|
static String |
dateAsMillis(int year,
int month,
int day,
int hour,
int minute)
Returns a string representing the given date in milliseconds, for example 123456789 . |
static String |
dateAsTimestamp(int year,
int month,
int day,
int hour,
int minute)
Returns a string representing the given date in the format suitable for timestamp fields in the data XML file, for example 2008-06-02 09:43:58.788 . |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public DateUtil()
Method Detail |
---|
public static String dateAsTimestamp(int year, int month, int day, int hour, int minute)
Returns a string representing the given date in the format suitable for timestamp fields in the data XML file,
for example 2008-06-02 09:43:58.788
.
year
- yearmonth
- monthday
- dayhour
- hourminute
- minute
public static String dateAsMillis(int year, int month, int day, int hour, int minute)
Returns a string representing the given date in milliseconds, for example 123456789
.
year
- yearmonth
- monthday
- dayhour
- hourminute
- minute
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |