Class TandemUtility
java.lang.Object
com.softwaremining.vendors.tandem.TandemUtility
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic long
getComputetimestamp
(int[] dateAndTime) static long
getComputetimestamp
(int[] dateAndTime, int errorMask) Converts a Gregorian date and time into a 64-bit Julian timestamp.static long
getComputetimestamp
(CBLBean wrapper) Shortcut version to confirm to usual call patterns used everywhere else in the framework.static long
getComputetimestamp
(CBLBean wrapper, int errorMask) static long
getConverttimestamp
(double julianTimestamp) static long
getConverttimestamp
(long julianTimestamp, int direction, int node) static long
getInterprettimestamp
(double julianTimestamp, CBLBean wrapper) static long
getInterprettimestamp
(double julianTimestamp, String datetime) static long
getInterprettimestamp
(long julianTimestamp) static long
getInterprettimestamp
(long julianTimestamp, int[] dateAndTime) static long
static long
getJuliantimestamp
(int tuid, int error, int node) static long
getJuliantimestamp
(int type, int tuid, int error, int node)
-
Constructor Details
-
TandemUtility
public TandemUtility()
-
-
Method Details
-
getConverttimestamp
public static long getConverttimestamp(double julianTimestamp) -
getConverttimestamp
public static long getConverttimestamp(long julianTimestamp, int direction, int node) -
getInterprettimestamp
-
getInterprettimestamp
-
getInterprettimestamp
public static long getInterprettimestamp(long julianTimestamp, int[] dateAndTime) -
getInterprettimestamp
public static long getInterprettimestamp(long julianTimestamp) -
getJuliantimestamp
public static long getJuliantimestamp(int tuid, int error, int node) -
getJuliantimestamp
public static long getJuliantimestamp() -
getJuliantimestamp
public static long getJuliantimestamp(int type, int tuid, int error, int node) -
getComputetimestamp
public static long getComputetimestamp(int[] dateAndTime, int errorMask) Converts a Gregorian date and time into a 64-bit Julian timestamp. Limitations: The Java Gregorian calendar has no microseconds precision so the last 3 digits will be always 000.- Parameters:
dateAndTime
- - an array containing a date and time of dayerrorMask
- - is a bit array that indicates any error in the dateAndTime parameter- Returns:
- returns a 64-bit Julian timestamp, computed from dateAndTime.
-
getComputetimestamp
public static long getComputetimestamp(int[] dateAndTime) -
getComputetimestamp
Shortcut version to confirm to usual call patterns used everywhere else in the framework. Error mask of 0 is passed behind the scenes as a parameter.- Parameters:
wrapper
- The actual parameter as supplied by original COBOL call- Returns:
- returns the result of calling next method in polymorphic chain
-
getComputetimestamp
-