private static long parseTime(String time) {
    long unixTime = 0;
    try {
      unixTime = Long.parseLong(time);
    } catch (NumberFormatException ex) {
      // return 0
    }
    return unixTime;
  }
Parse the string for time in long

@param time The string to be parsed
@return the epoch value
app/controllers/Application.java