docs: public void setDates(String photoId, Date datePosted, Date dateTaken, String dateTakenGranularity) throws FlickrException {
          Map<String, Object> parameters = new HashMap<String, Object>();
          parameters.put("method", METHOD_SET_DATES);
  
          parameters.put("photo_id", photoId);
  
          if (datePosted != null) {
              parameters.put("date_posted", Long.toString(datePosted.getTime() / 1000));
          }
  
          if (dateTaken != null) {
              parameters.put("date_taken", ((DateFormat) DATE_FORMATS.get()).format(dateTaken));
          }
  
          if (dateTakenGranularity != null) {
              parameters.put("date_taken_granularity", dateTakenGranularity);
          }
  
          Response response = transport.post(transport.getPath(), parameters, apiKey, sharedSecret);
          if (response.isError()) {
              throw new FlickrException(response.getErrorCode(), response.getErrorMessage());
          }
      }