
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 |
| ERXTimestamp | ( | NSTimestamp | value | ) | [package] |
Public constructor.
| value | timestamp to be wrapped |
| 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
| int dayOfMonth | ( | ) |
Returns the day of the month as returned by a GregorianCalendar.
| int dayOfWeek | ( | ) |
Returns the day of the week as returned by a GregorianCalendar.
| int dayOfYear | ( | ) |
Returns the day of the year as returned by a GregorianCalendar.
| int hourOfDay | ( | ) |
Returns the hour of the day as returned by a GregorianCalendar.
| int minuteOfHour | ( | ) |
Returns the minute of the hour as returned by a GregorianCalendar.
| int monthOfYear | ( | ) |
Returns the month of the year as returned by a GregorianCalendar.
| int secondOfMinute | ( | ) |
Returns the seconds of the minute as returned by a GregorianCalendar.
| int yearOfCommonEra | ( | ) |
Returns the year of the common era as returned by a GregorianCalendar.
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
1.5.8