public class CalendarHelpers extends Object
Modifier and Type | Field and Description |
---|---|
protected int |
debugLevel
Controls amount of intermediate output to aid
in software development and diagnostices.
|
protected Calendar |
refCalendar |
Constructor and Description |
---|
CalendarHelpers() |
CalendarHelpers(Calendar value) |
CalendarHelpers(TimeZone value) |
Modifier and Type | Method and Description |
---|---|
int |
getDebugLevel()
Getter for debugLevel
|
Date |
getNextDay(Date value) |
Date |
getStartOfDay(Date value) |
long |
getTimeOfDay(Date value)
Returns number of milliseconds since start of day.
|
static void |
main(String[] args) |
void |
setDebugLevel(int value)
Setter for debugLevel
|
Date |
specialFix(Date value)
Deprecated.
|
protected Calendar refCalendar
protected int debugLevel
A more positive value indicates that more output is to be generated. A more negative value indicates that less output is to be generated.
public CalendarHelpers()
public CalendarHelpers(TimeZone value)
public CalendarHelpers(Calendar value)
public int getDebugLevel()
debugLevel
public void setDebugLevel(int value)
value
- Value for debugLeveldebugLevel
public long getTimeOfDay(Date value)
value
- Date for which calculation is to be runpublic Date getStartOfDay(Date value)
public Date getNextDay(Date value)
public Date specialFix(Date value)
The problem was that the source program was incorrectly assigning am and pm for some times. It appears that this problem has now been corrected.
value
- Date as provided by program