er.extensions.foundation
Class ERXTimestampUtility
java.lang.Object
er.extensions.foundation.ERXTimestampUtility
public class ERXTimestampUtility
- extends java.lang.Object
A simple utility for providing deprecated functionality for NSTimestamps
Method Summary |
static java.util.GregorianCalendar |
calendarForTimestamp(com.webobjects.foundation.NSTimestamp t)
|
static long |
compareDatesInCommonEra(com.webobjects.foundation.NSTimestamp t1,
com.webobjects.foundation.NSTimestamp t2,
int mode)
|
static int |
dayOfCommonEra(com.webobjects.foundation.NSTimestamp t)
|
static int |
dayOfMonth(com.webobjects.foundation.NSTimestamp t)
|
static int |
dayOfWeek(com.webobjects.foundation.NSTimestamp t)
|
static int |
dayOfYear(com.webobjects.foundation.NSTimestamp t)
|
static long |
differenceByDay(com.webobjects.foundation.NSTimestamp t1,
com.webobjects.foundation.NSTimestamp t2)
|
static long |
differenceByMonth(com.webobjects.foundation.NSTimestamp t1,
com.webobjects.foundation.NSTimestamp t2)
|
static long |
differenceByWeek(com.webobjects.foundation.NSTimestamp t1,
com.webobjects.foundation.NSTimestamp t2)
|
static long |
differenceByYear(com.webobjects.foundation.NSTimestamp t1,
com.webobjects.foundation.NSTimestamp t2)
|
static com.webobjects.foundation.NSTimestamp |
firstDateInNextMonth(com.webobjects.foundation.NSTimestamp value)
|
static com.webobjects.foundation.NSTimestamp |
firstDateInSameMonth(com.webobjects.foundation.NSTimestamp value)
|
static com.webobjects.foundation.NSTimestamp |
firstDateInSameWeek(com.webobjects.foundation.NSTimestamp value)
|
static int |
hourOfDay(com.webobjects.foundation.NSTimestamp t)
|
static boolean |
isWeekDay(com.webobjects.foundation.NSTimestamp t)
|
static int |
minuteOfHour(com.webobjects.foundation.NSTimestamp t)
|
static int |
monthOfCommonEra(com.webobjects.foundation.NSTimestamp t)
|
static int |
monthOfYear(com.webobjects.foundation.NSTimestamp t)
|
static long |
offsetForDateInCommonEra(com.webobjects.foundation.NSTimestamp t,
int mode)
|
static int |
secondOfMinute(com.webobjects.foundation.NSTimestamp t)
|
static int |
weekOfCommonEra(com.webobjects.foundation.NSTimestamp t)
|
static int |
weekOfMonth(com.webobjects.foundation.NSTimestamp t)
|
static int |
weekOfYear(com.webobjects.foundation.NSTimestamp t)
|
static int |
yearOfCommonEra(com.webobjects.foundation.NSTimestamp t)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ERXTimestampUtility
public ERXTimestampUtility()
calendarForTimestamp
public static java.util.GregorianCalendar calendarForTimestamp(com.webobjects.foundation.NSTimestamp t)
offsetForDateInCommonEra
public static long offsetForDateInCommonEra(com.webobjects.foundation.NSTimestamp t,
int mode)
differenceByDay
public static long differenceByDay(com.webobjects.foundation.NSTimestamp t1,
com.webobjects.foundation.NSTimestamp t2)
differenceByWeek
public static long differenceByWeek(com.webobjects.foundation.NSTimestamp t1,
com.webobjects.foundation.NSTimestamp t2)
differenceByMonth
public static long differenceByMonth(com.webobjects.foundation.NSTimestamp t1,
com.webobjects.foundation.NSTimestamp t2)
differenceByYear
public static long differenceByYear(com.webobjects.foundation.NSTimestamp t1,
com.webobjects.foundation.NSTimestamp t2)
firstDateInSameWeek
public static com.webobjects.foundation.NSTimestamp firstDateInSameWeek(com.webobjects.foundation.NSTimestamp value)
firstDateInSameMonth
public static com.webobjects.foundation.NSTimestamp firstDateInSameMonth(com.webobjects.foundation.NSTimestamp value)
firstDateInNextMonth
public static com.webobjects.foundation.NSTimestamp firstDateInNextMonth(com.webobjects.foundation.NSTimestamp value)
compareDatesInCommonEra
public static long compareDatesInCommonEra(com.webobjects.foundation.NSTimestamp t1,
com.webobjects.foundation.NSTimestamp t2,
int mode)
dayOfCommonEra
public static int dayOfCommonEra(com.webobjects.foundation.NSTimestamp t)
monthOfCommonEra
public static int monthOfCommonEra(com.webobjects.foundation.NSTimestamp t)
weekOfCommonEra
public static int weekOfCommonEra(com.webobjects.foundation.NSTimestamp t)
isWeekDay
public static boolean isWeekDay(com.webobjects.foundation.NSTimestamp t)
dayOfWeek
public static int dayOfWeek(com.webobjects.foundation.NSTimestamp t)
dayOfMonth
public static int dayOfMonth(com.webobjects.foundation.NSTimestamp t)
weekOfYear
public static int weekOfYear(com.webobjects.foundation.NSTimestamp t)
weekOfMonth
public static int weekOfMonth(com.webobjects.foundation.NSTimestamp t)
dayOfYear
public static int dayOfYear(com.webobjects.foundation.NSTimestamp t)
hourOfDay
public static int hourOfDay(com.webobjects.foundation.NSTimestamp t)
minuteOfHour
public static int minuteOfHour(com.webobjects.foundation.NSTimestamp t)
secondOfMinute
public static int secondOfMinute(com.webobjects.foundation.NSTimestamp t)
monthOfYear
public static int monthOfYear(com.webobjects.foundation.NSTimestamp t)
yearOfCommonEra
public static int yearOfCommonEra(com.webobjects.foundation.NSTimestamp t)
Copyright © 2002 – 2007 Project Wonder.