ERXTimestampUtilities.ERXTimestamp Class Reference

Collaboration diagram for ERXTimestampUtilities.ERXTimestamp:

Collaboration graph
[legend]

List of all members.

Public Member Functions

long dayOfCommonEra ()
int dayOfMonth ()
int dayOfWeek ()
int dayOfYear ()
int hourOfDay ()
int minuteOfHour ()
int monthOfYear ()
int secondOfMinute ()
int yearOfCommonEra ()

Package Functions

 ERXTimestamp (NSTimestamp value)

Private Attributes

GregorianCalendar _calendar
NSTimestamp ts

Static Private Attributes

static final long _YEAR_1 = 1721426


Detailed Description

Static inner class used for calculations for a given timestamp. Only used internally.

Constructor & Destructor Documentation

ERXTimestamp ( NSTimestamp  value  )  [package]

Public constructor.

Parameters:
value timestamp to be wrapped


Member Function Documentation

long dayOfCommonEra (  ) 

Returns the day of the common era. Please note that even if leap years are handled but result is not consistent with NSTimestamp's. The formula used is detailed here: http://www.tondering.dk/claus/cal/node3.html#SECTION003151000000000000000

Returns:
day of the common era

int dayOfMonth (  ) 

Returns the day of the month as returned by a GregorianCalendar.

Returns:
day of the month as an int.

int dayOfWeek (  ) 

Returns the day of the week as returned by a GregorianCalendar.

Returns:
day of the week as an int.

int dayOfYear (  ) 

Returns the day of the year as returned by a GregorianCalendar.

Returns:
day of the year as an int.

int hourOfDay (  ) 

Returns the hour of the day as returned by a GregorianCalendar.

Returns:
hour of the day as an int.

int minuteOfHour (  ) 

Returns the minute of the hour as returned by a GregorianCalendar.

Returns:
minute of the hour as an int.

int monthOfYear (  ) 

Returns the month of the year as returned by a GregorianCalendar.

Returns:
month of the year as an int.

int secondOfMinute (  ) 

Returns the seconds of the minute as returned by a GregorianCalendar.

Returns:
seconds of the minute as an int.

int yearOfCommonEra (  ) 

Returns the year of the common era as returned by a GregorianCalendar.

Returns:
year of the common era as an int.


Member Data Documentation

GregorianCalendar _calendar [private]

holds the calendar instance

final long _YEAR_1 = 1721426 [static, private]

the number of days elapsed from 4713 BC to 1 C.E.

NSTimestamp ts [private]

holds the timestamp


The documentation for this class was generated from the following file:

Generated on Sat May 26 06:43:15 2012 for Project Wonder by  doxygen 1.5.8