Class TandemUtility
java.lang.Object
com.softwaremining.vendors.tandem.TandemUtility
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic longgetComputetimestamp(int[] dateAndTime) static longgetComputetimestamp(int[] dateAndTime, int errorMask) Converts a Gregorian date and time into a 64-bit Julian timestamp.static longgetComputetimestamp(CBLBean wrapper) Shortcut version to confirm to usual call patterns used everywhere else in the framework.static longgetComputetimestamp(CBLBean wrapper, int errorMask) static longgetConverttimestamp(double julianTimestamp) static longgetConverttimestamp(long julianTimestamp, int direction, int node) static longgetInterprettimestamp(double julianTimestamp, CBLBean wrapper) static longgetInterprettimestamp(double julianTimestamp, String datetime) static longgetInterprettimestamp(long julianTimestamp) static longgetInterprettimestamp(long julianTimestamp, int[] dateAndTime) static longstatic longgetJuliantimestamp(int tuid, int error, int node) static longgetJuliantimestamp(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
-