code: public static final long timeFromIntentInMillis(Intent intent) {
          // If the time was specified, then use that. Otherwise, use the current
          // time.
          Uri data = intent.getData();
          long millis = intent.getLongExtra(EXTRA_EVENT_BEGIN_TIME, -1);
          if (millis == -1 && data != null && data.isHierarchical()) {
              List<String> path = data.getPathSegments();
              if (path.size() == 2 && path.get(0).equals("time")) {
                  try {
                      millis = Long.valueOf(data.getLastPathSegment());
                  } catch (NumberFormatException e) {
                      Log.i("Calendar", "timeFromIntentInMillis: Data existed but no valid time "
                              + "found. Using current time.");
                  }
              }
          }
          if (millis <= 0) {
              millis = System.currentTimeMillis();
          }
          return millis;
      }
docs: If the given intent specifies a time (in milliseconds since the epoch),
  then that time is returned. Otherwise, the current time is returned.