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