/** * Convert a given timestamp from a String format to a long value.<p> * * The timestamp is either the string representation of a long value (old export format) * or a user-readable string format. * * @param timestamp timestamp to convert * @return long value of the timestamp */ private long convertTimestamp(String timestamp) { long value = 0; // try to parse the timestamp string // if it successes, its an old style long value try { value = Long.parseLong(timestamp); } catch (NumberFormatException e) { // the timestamp was in in a user-readable string format, create the long value form it try { value = CmsDateUtil.parseHeaderDate(timestamp); } catch (ParseException pe) { value = System.currentTimeMillis(); } } return value; }
/** * Convert a given timestamp from a String format to a long value.<p> * * The timestamp is either the string representation of a long value (old export format) * or a user-readable string format. * * @param timestamp timestamp to convert * @return long value of the timestamp */ private long convertTimestamp(String timestamp) { long value = 0; // try to parse the timestamp string // if it successes, its an old style long value try { value = Long.parseLong(timestamp); } catch (NumberFormatException e) { // the timestamp was in in a user-readable string format, create the long value form it try { value = CmsDateUtil.parseHeaderDate(timestamp); } catch (ParseException pe) { value = System.currentTimeMillis(); } } return value; }
/** * Convert a given time stamp from a String format to a long value.<p> * * The time stamp is either the string representation of a long value (old export format) * or a user-readable string format. * * @param timestamp time stamp to convert * * @return long value of the time stamp */ protected long convertTimestamp(String timestamp) { long value = 0; // try to parse the time stamp string // if it successes, its an old style long value try { value = Long.parseLong(timestamp); } catch (NumberFormatException e) { // the time stamp was in in a user-readable string format, create the long value form it try { value = CmsDateUtil.parseHeaderDate(timestamp); } catch (ParseException pe) { value = System.currentTimeMillis(); } } return value; }
/** * Convert a given time stamp from a String format to a long value.<p> * * The time stamp is either the string representation of a long value (old export format) * or a user-readable string format.<p> * * @param timestamp time stamp to convert * * @return long value of the time stamp */ protected long convertTimestamp(String timestamp) { long value = 0; // try to parse the time stamp string // if it successes, its an old style long value try { value = Long.parseLong(timestamp); } catch (@SuppressWarnings("unused") NumberFormatException e) { // the time stamp was in in a user-readable string format, create the long value form it try { value = CmsDateUtil.parseHeaderDate(timestamp); } catch (@SuppressWarnings("unused") ParseException pe) { value = System.currentTimeMillis(); } } return value; }
/** * Convert a given time stamp from a String format to a long value.<p> * * The time stamp is either the string representation of a long value (old export format) * or a user-readable string format.<p> * * @param timestamp time stamp to convert * * @return long value of the time stamp */ protected long convertTimestamp(String timestamp) { long value = 0; // try to parse the time stamp string // if it successes, its an old style long value try { value = Long.parseLong(timestamp); } catch (NumberFormatException e) { // the time stamp was in in a user-readable string format, create the long value form it try { value = CmsDateUtil.parseHeaderDate(timestamp); } catch (ParseException pe) { value = System.currentTimeMillis(); } } return value; }
/** * Convert a given time stamp from a String format to a long value.<p> * * The time stamp is either the string representation of a long value (old export format) * or a user-readable string format. * * @param timestamp time stamp to convert * * @return long value of the time stamp */ protected long convertTimestamp(String timestamp) { long value = 0; // try to parse the time stamp string // if it successes, its an old style long value try { value = Long.parseLong(timestamp); } catch (NumberFormatException e) { // the time stamp was in in a user-readable string format, create the long value form it try { value = CmsDateUtil.parseHeaderDate(timestamp); } catch (ParseException pe) { value = System.currentTimeMillis(); } } return value; }
/** * Convert a given time stamp from a String format to a long value.<p> * * The time stamp is either the string representation of a long value (old export format) * or a user-readable string format.<p> * * @param timestamp time stamp to convert * * @return long value of the time stamp */ protected long convertTimestamp(String timestamp) { long value = 0; // try to parse the time stamp string // if it successes, its an old style long value try { value = Long.parseLong(timestamp); } catch (NumberFormatException e) { // the time stamp was in in a user-readable string format, create the long value form it try { value = CmsDateUtil.parseHeaderDate(timestamp); } catch (ParseException pe) { value = System.currentTimeMillis(); } } return value; }
if (dateCreated != null) { try { moduleDateCreated = CmsDateUtil.parseHeaderDate(dateCreated); } catch (ParseException e) { if (dateInstalled != null) { try { moduleDateInstalled = CmsDateUtil.parseHeaderDate(dateInstalled); } catch (ParseException e1) {
if (dateCreated != null) { try { moduleDateCreated = CmsDateUtil.parseHeaderDate(dateCreated); } catch (ParseException e) { if (dateInstalled != null) { try { moduleDateInstalled = CmsDateUtil.parseHeaderDate(dateInstalled); } catch (ParseException e1) {