code: public static long lastModifiedAsLong(String strTime) throws IOException {
      final SimpleDateFormat simpleDateFormat = new SimpleDateFormat(TIME_PATTERN,
          Locale.US);
      try {
        long lastModified = simpleDateFormat.parse(strTime).getTime();
        if (lastModified == 0) {
          lastModified = System.currentTimeMillis();
        }
        return lastModified;
      } catch (ParseException e) {
        throw new IOException("Failed to parse " + strTime, e);
      }
    }
docs: Transforms last modified time stamp from String to the long format
  
  @param strTime time in string format as returned from Swift
  @return time in long format
  @throws IOException if failed to parse time stamp