Project Wonder 2.0

er.extensions
Class ERXTimestampUtility

java.lang.Object
  extended byer.extensions.ERXTimestampUtility

public class ERXTimestampUtility
extends Object

A simle utility for providing deprecated functionality for NSTimestamps


Field Summary
protected static GregorianCalendar _calendar
           
 
Constructor Summary
ERXTimestampUtility()
           
 
Method Summary
static GregorianCalendar calendarForTimestamp(NSTimestamp t)
           
static long compareDatesInCommonEra(NSTimestamp t1, NSTimestamp t2, int mode)
           
static int dayOfCommonEra(NSTimestamp t)
           
static int dayOfMonth(NSTimestamp t)
           
static int dayOfWeek(NSTimestamp t)
           
static int dayOfYear(NSTimestamp t)
           
static long differenceByDay(NSTimestamp t1, NSTimestamp t2)
           
static long differenceByMonth(NSTimestamp t1, NSTimestamp t2)
           
static long differenceByWeek(NSTimestamp t1, NSTimestamp t2)
           
static long differenceByYear(NSTimestamp t1, NSTimestamp t2)
           
static NSTimestamp firstDateInNextMonth(NSTimestamp value)
           
static NSTimestamp firstDateInSameMonth(NSTimestamp value)
           
static NSTimestamp firstDateInSameWeek(NSTimestamp value)
           
static int hourOfDay(NSTimestamp t)
           
static boolean isWeekDay(NSTimestamp t)
           
static int minuteOfHour(NSTimestamp t)
           
static int monthOfCommonEra(NSTimestamp t)
           
static int monthOfYear(NSTimestamp t)
           
static long offsetForDateInCommonEra(NSTimestamp t, int mode)
           
static int weekOfCommonEra(NSTimestamp t)
           
static int weekOfMonth(NSTimestamp t)
           
static int weekOfYear(NSTimestamp t)
           
static int yearOfCommonEra(NSTimestamp t)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

_calendar

protected static GregorianCalendar _calendar
Constructor Detail

ERXTimestampUtility

public ERXTimestampUtility()
Method Detail

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)

Last updated: Do, Dez 9, 2004 • 12:46 PM CET

Copyright © 2002 – 2004 Project Wonder.