com.ibm.as400.access
Class AS400Calendar
- java.lang.Object
-
- com.ibm.as400.access.AS400Calendar
-
public class AS400Calendar extends java.lang.Object
-
-
Constructor Summary
Constructors Constructor and Description AS400Calendar()
-
Method Summary
Methods Modifier and Type Method and Description static java.util.Calendar
getConversionCalendar(java.util.Calendar calendar)
Get a calendar to do the conversion to java.util.Date based objects.static java.util.Calendar
getGMTInstance()
static java.util.Calendar
getGregorianInstance()
static java.util.Calendar
getGregorianInstance(java.util.TimeZone timezone)
-
-
-
Method Detail
-
getGregorianInstance
public static java.util.Calendar getGregorianInstance()
-
getGregorianInstance
public static java.util.Calendar getGregorianInstance(java.util.TimeZone timezone)
-
getConversionCalendar
public static java.util.Calendar getConversionCalendar(java.util.Calendar calendar)
Get a calendar to do the conversion to java.util.Date based objects. If the user passes in a non-Gregorian calendar, then use the timezone to create a gregorian calendar. This is the observed behavior of the jcc driver.- Parameters:
calendar
- base calendar- Returns:
- Calendar to use for java.util.Date based objects.
-
getGMTInstance
public static java.util.Calendar getGMTInstance()
-
-