|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.cassinidivision.core.foundation.NSTimestamp_Helper
NSTimestamp-based utility methods.
Constructor Summary | |
NSTimestamp_Helper()
|
Method Summary | |
static int |
dayOfMonth(NSTimestamp myNSTimestamp)
Cover for deprecated NSTimestamp.dayOfMonth() method. |
static int |
dayOfWeek(NSTimestamp myNSTimestamp)
Cover for deprecated NSTimestamp.dayOfWeek() method. |
static NSTimestamp |
earliestDateFromArray(NSArray arrayOfDates)
Retrieve the earliest timestamp in an array of timestamps. |
static NSTimestamp |
firstDayOfMonth(NSTimestamp myDate)
Retrieve the first day of the month corresponding to the month in the timestamp supplied. |
static NSTimestamp |
firstDayOfWeek(NSTimestamp myDate)
Retrieve the first day of the week corresponding to the day supplied in the timestamp. |
static int |
hourOfDay(NSTimestamp myNSTimestamp)
Cover for deprecated NSTimestamp.dayOfMonth() method. |
static NSTimestamp |
lastDayOfMonth(NSTimestamp myDate)
Retrieve the last day of the month corresponding to the month in the timestamp supplied. |
static NSTimestamp |
lastDayOfWeek(NSTimestamp myDate)
Retrieve the last day of the week corresponding to the day supplied in the timestamp. |
static NSTimestamp |
lastMonth(NSTimestamp myDate)
Retrieve a timestamp one month ago (time of day set to midnight). |
static NSTimestamp |
lastSecondOfSameDay(NSTimestamp myDate)
Retrieve the final second in the day (23:59:59) corresponding to the timestamp specified. |
static NSTimestamp |
lastWeek(NSTimestamp myDate)
Retrieve a timestamp for the previous week (time of day set to midnight). |
static NSTimestamp |
midnightOnSameDay(NSTimestamp myDate)
Retrieve the first second in the day (00:00:00) corresponding to the timestamp specified. |
static int |
minuteOfDay(NSTimestamp myDate)
Retrieve the number of minutes that have elapsed since midnight for the timestamp specified. |
static int |
minuteOfHour(NSTimestamp myNSTimestamp)
Cover for deprecated NSTimestamp.minuteOfHour() method. |
static int |
minuteOfWeek(NSTimestamp myDate)
Retrieve the number of minutes that have elapsed since the beginning of the week (midnight on Sunday) for the timestamp specified. |
static int |
monthOfYear(NSTimestamp myNSTimestamp)
Cover for deprecated NSTimestamp.monthOfYear() method. |
static NSTimestamp |
nextMonday(NSTimestamp myDate)
Retrieve the next Monday following the date supplied in the timestamp. |
static NSTimestamp |
nextMonth(NSTimestamp myDate)
Retrieve a timestamp one month ahead (time of day set to midnight). |
static NSTimestamp |
nextWeek(NSTimestamp myDate)
Retrieve a timestamp for the week ahead (time of day set to midnight). |
static NSTimestamp |
tomorrow(NSTimestamp myDate)
Retrieve a timestamp for the day ahead (time of day set to midnight). |
static int |
yearOfCommonEra(NSTimestamp myNSTimestamp)
Cover for deprecated NSTimestamp.yearOfCommonEra() method. |
static NSTimestamp |
yesterday(NSTimestamp myDate)
Retrieve a timestamp for the previous day (time of day set to midnight). |
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public NSTimestamp_Helper()
Method Detail |
public static NSTimestamp tomorrow(NSTimestamp myDate)
myDate
- Original timestamp.
public static NSTimestamp nextWeek(NSTimestamp myDate)
myDate
- Original timestamp.
public static NSTimestamp yesterday(NSTimestamp myDate)
myDate
- Original timestamp.
public static NSTimestamp lastWeek(NSTimestamp myDate)
myDate
- Original timestamp.
public static NSTimestamp lastMonth(NSTimestamp myDate)
myDate
- Original timestamp.
public static NSTimestamp nextMonth(NSTimestamp myDate)
myDate
- Original timestamp.
public static NSTimestamp firstDayOfMonth(NSTimestamp myDate)
myDate
- Original timestamp.
public static NSTimestamp lastDayOfMonth(NSTimestamp myDate)
myDate
- Original timestamp.
public static NSTimestamp firstDayOfWeek(NSTimestamp myDate)
myDate
- Original timestamp.
public static NSTimestamp lastDayOfWeek(NSTimestamp myDate)
myDate
- Original timestamp.
public static NSTimestamp nextMonday(NSTimestamp myDate)
myDate
- Original timestamp.
public static int minuteOfWeek(NSTimestamp myDate)
myDate
- Original timestamp.
public static int minuteOfDay(NSTimestamp myDate)
myDate
- Original timestamp.
public static NSTimestamp midnightOnSameDay(NSTimestamp myDate)
myDate
- Original timestamp.
public static NSTimestamp lastSecondOfSameDay(NSTimestamp myDate)
myDate
- Original timestamp.
public static NSTimestamp earliestDateFromArray(NSArray arrayOfDates)
arrayOfDates
- An array of NSTimestamp instances.
public static int yearOfCommonEra(NSTimestamp myNSTimestamp)
NSTimestamp.yearOfCommonEra()
method.
myNSTimestamp
- Original timestamp.
public static int monthOfYear(NSTimestamp myNSTimestamp)
NSTimestamp.monthOfYear()
method.
myNSTimestamp
- Original timestamp.
public static int dayOfWeek(NSTimestamp myNSTimestamp)
NSTimestamp.dayOfWeek()
method.
myNSTimestamp
- Original timestamp.
public static int dayOfMonth(NSTimestamp myNSTimestamp)
NSTimestamp.dayOfMonth()
method.
myNSTimestamp
- Original timestamp.
public static int hourOfDay(NSTimestamp myNSTimestamp)
NSTimestamp.dayOfMonth()
method.
myNSTimestamp
- Original timestamp.
public static int minuteOfHour(NSTimestamp myNSTimestamp)
NSTimestamp.minuteOfHour()
method.
myNSTimestamp
- Original timestamp.
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |