Class SapDateTimeAdapter
- java.lang.Object
- 
- com.redwood.scheduler.api.connector.sap.rfc.scripting.util.SapDateTimeAdapter
 
- 
 public class SapDateTimeAdapter extends Object Adapter for converting date and time fields in SAP format toDateTimeZone
- 
- 
Constructor SummaryConstructors Constructor Description SapDateTimeAdapter()
 - 
Method SummaryAll Methods Static Methods Concrete Methods Modifier and Type Method Description static DateTimeZonetoDateTimeZone(String sapDate, String sapTime, TimeZone timeZone)Convert SAP date in the format YYYYMMDD and time in the format HHMMSS to an instance ofDateTimeZonestatic DateTimeZonetoDateTimeZone(String sapDateTime, TimeZone timeZone)Convert a SAP time stamp in the format YYYYMMDDHHMMSS to an instance ofDateTimeZonestatic StringtoSapDate(DateTimeZone dtz)Convert an instance ofDateTimeZoneto SAP date in the format YYYYMMDDstatic StringtoSapDateTime(DateTimeZone dtz)Convert an instance ofDateTimeZoneto SAP time stamp in the format YYYYMMDDHHMMSSstatic StringtoSapTime(DateTimeZone dtz)Convert an instance ofDateTimeZoneto SAP time in the format HHMMSS
 
- 
- 
- 
Method Detail- 
toDateTimeZonepublic static DateTimeZone toDateTimeZone(String sapDateTime, TimeZone timeZone) Convert a SAP time stamp in the format YYYYMMDDHHMMSS to an instance ofDateTimeZone- Parameters:
- sapDateTime- time stamp in the format YYYYMMDDHHMMSS
- timeZone- time zone of the SAP time stamp
- Returns:
- instance of DateTimeZone
 
 - 
toDateTimeZonepublic static DateTimeZone toDateTimeZone(String sapDate, String sapTime, TimeZone timeZone) Convert SAP date in the format YYYYMMDD and time in the format HHMMSS to an instance ofDateTimeZone- Parameters:
- sapDate- date in the format YYYYMMDD
- sapTime- time in the format HHMMSS
- timeZone- time zone of the SAP time stamp
- Returns:
- instance of DateTimeZone
 
 - 
toSapDatepublic static String toSapDate(DateTimeZone dtz) Convert an instance ofDateTimeZoneto SAP date in the format YYYYMMDD- Parameters:
- dtz- instance of- DateTimeZone
- Returns:
- SAP date in the format YYYYMMDD
 
 - 
toSapTimepublic static String toSapTime(DateTimeZone dtz) Convert an instance ofDateTimeZoneto SAP time in the format HHMMSS- Parameters:
- dtz- instance of- DateTimeZone
- Returns:
- SAP time in the format HHMMSS
 
 - 
toSapDateTimepublic static String toSapDateTime(DateTimeZone dtz) Convert an instance ofDateTimeZoneto SAP time stamp in the format YYYYMMDDHHMMSS- Parameters:
- dtz- instance of- DateTimeZone
- Returns:
- SAP time stamp in the format YYYYMMDDHHMMSS
 
 
- 
 
-