Sets the licenseWindowStartDateTime value for this SetTopBoxCreative.

@param licenseWindowStartDateTime   * The date and time that this creative can begin serving from
a local cable video-on-demand
server. This attribute is optional.
425652
public void setLicenseWindowStartDateTime(com.google.api.ads.admanager.axis.v201805.DateTime licenseWindowStartDateTime) {
        this.licenseWindowStartDateTime = licenseWindowStartDateTime;
    }
204801
public void setLicenseConfigurations(java.util.Collection<LicenseConfiguration> licenseConfigurations) {
        if (licenseConfigurations == null) {
            this.licenseConfigurations = null;
            return;
        }

        this.licenseConfigurations = new java.util.ArrayList<LicenseConfiguration>(licenseConfigurations);
    }
52287
public static boolean validateLicense(LicenseApi licenseApi, int numberOfNodes, DrRoleType replicationRole,
            StartAction startAction)
    {
        // Delay the handling of an invalid license file until here so
        // that the leader can terminate the full cluster.
        if (licenseApi == null) {
            hostLog.fatal("VoltDB license is not valid.");
            return false;
        }

        // do some extra initialization here
        if (!licenseApi.secondaryInitialization()) {
            return false;
        }

        Calendar now = GregorianCalendar.getInstance();
        SimpleDateFormat sdf = new SimpleDateFormat("MMM d, yyyy");
        String expiresStr = sdf.format(licenseApi.expires().getTime());
        boolean valid = true;

        // make it really expire tomorrow to deal with timezone whiners
        Calendar yesterday = GregorianCalendar.getInstance();
        yesterday.add(Calendar.DATE, -1);

        if (yesterday.after(licenseApi.expires())) {
            if (licenseApi.hardExpiration()) {
                if (licenseApi.isAnyKindOfTrial()) {
                    hostLog.fatal("VoltDB trial license expired on " + expiresStr + ".");
                }
                else {
                    hostLog.fatal("VoltDB license expired on " + expiresStr + ".");
                }
                hostLog.fatal("Please contact sales@voltdb.com to request a new license.");
                return false;
            }
            else {
                // Expired commercial licenses are allowed but generate log messages.
                hostLog.error("Warning, VoltDB commercial license expired on " + expiresStr + ".");
                valid = false;
            }
        }

        // enforce DR replication constraint
        if (licenseApi.isDrReplicationAllowed() == false) {
            if (replicationRole != DrRoleType.NONE) {
                hostLog.fatal("Warning, VoltDB license does not allow use of DR replication.");
                return false;
            }
        } else if (licenseApi.isDrActiveActiveAllowed() == false) {
            if (replicationRole == DrRoleType.XDCR) {
                hostLog.fatal("Warning, VoltDB license does not allow use of XDCR.");
                return false;
            }
        }

        // check node count
        if (licenseApi.maxHostcount() < numberOfNodes) {
            hostLog.fatal("Attempting to " + (startAction.doesJoin() ? "join" : "start") + " with too many nodes ("
                    + numberOfNodes + "). " + "Current license only supports " + licenseApi.maxHostcount()
                    + ". Please contact VoltDB at info@voltdb.com.");
            return false;
        }

        // If this is a commercial license, and there is less than or equal to 30 days until expiration,
        // issue a "days remaining" warning message.
        long diff = licenseApi.expires().getTimeInMillis() - now.getTimeInMillis();
        // The original license is only a whole data (no minutes/millis).
        // There should thus be no issue with daylight savings time,
        // but just in case, if the diff is a negative number, round up to zero.
        if (diff < 0) {
            diff = 0;
        }
        long diffDays = diff / (24 * 60 * 60 * 1000);

        // print out trial success message
        if (licenseApi.isAnyKindOfTrial()) {
            consoleLog.info("Starting VoltDB with trial license. License expires on " + expiresStr + " (" + diffDays + " days remaining).");
            return true;
        }

        if (licenseApi.isAWSMarketplace()) {
            return true;
        }

        // print out a warning within a month for other licenses
        if ((diff > 0) && (diff <= 30))
        {
            String msg = "Warning: VoltDB license expires in " + diffDays + " day(s).";
            consoleLog.info(msg);
        }

        // this gets printed even if there are non-fatal problems, so it
        // injects the word "invalid" to make it clear this is the case
        String msg = String.format("Starting VoltDB with %scommercial license. " +
                                   "License for %d nodes expires on %s.",
                                   (valid ? "" : "invalid "),
                                   licenseApi.maxHostcount(),
                                   expiresStr);
        consoleLog.info(msg);

        return true;
    }
654096
public void set(long count, long startTime, long lastSampleTime) {
        this.count = count;
        this.startTime = startTime;
        this.lastSampleTime = lastSampleTime;
    }
1343072
@Override
    protected void doStart() {
        try {
            String build = _configuration.getValue(SystemConfiguration.Property.BUILD);
            String version = _configuration.getValue(SystemConfiguration.Property.VERSION);
            String year = new SimpleDateFormat("yyyy").format(new Date());

            _log.info("Argus version {} build {}.", version, build);
            _log.info("Copyright Salesforce.com, {}.", year);
            _log.info("{} started.", getName());
            _persistService.start();
            _serviceFactory.getUserService().findAdminUser();
            _serviceFactory.getUserService().findDefaultUser();
        } catch (Throwable ex) {
            _log.error(getName() + " startup aborted.", ex);
        } finally {
            _mergeServiceConfiguration();
            _mergeNotifierConfiguration();
            _log.info(_configuration.toString());
        }
    }
1126705
public void setStart(final LocalTime START) {
        if (null == start) {
            _start = START;
        } else {
            start.set(START);
        }
    }
1257012
public static void setFirstLaunchDate(Context context, long firstLaunchDate) {
        SharedPreferences prefs = getSharedPreferences(context);
        SharedPreferences.Editor prefsEditor = prefs.edit();

        prefsEditor.putLong(PREF_KEY_APP_FIRST_LAUNCHED_DATE, firstLaunchDate);

        prefsEditor.commit();
    }
1332361
public void setStartDate(Date dateStart)
    {
        try   {
            // NOTE: I ignore dateStart and use the date as it appears on the screen
            dateStart = m_productItem.getStartDate(); // Date as it appears on the screen
            Date timeNew = m_productItem.setRemoteStartDate(dateStart);
            if (!timeNew.equals(dateStart))
            {
                Date timeEnd = m_productItem.getRemoteEndDate();    // ((TourLineItem)lineItem).getEndDate();
                String strDescription = m_productItem.getRemoteDescription(); // lineItem.getItem().getDescription();
                String[] rgstrMeals = m_productItem.getMealCache(timeNew, timeEnd);
                
                m_productItem.setCacheData(timeNew, timeEnd, strDescription, rgstrMeals);
                // Usually, you would have to update the data, but removing the icon in the next step will do this.
            }
        } catch (Exception ex)  {
            ex.printStackTrace();
        }
        try   {
            Thread.sleep(2000);     // Sleep for 2 seconds
        } catch (InterruptedException e)    {
        }
        m_productItem.setStatus(m_productItem.getStatus() & ~(1 << 1));
    }
1247244
public com.google.api.ads.admanager.axis.v201808.DateTime getLicenseWindowStartDateTime() {
        return licenseWindowStartDateTime;
    }
997152
func (s *InstanceGroupDetail) SetStartDateTime(v time.Time) *InstanceGroupDetail {
	s.StartDateTime = &v
	return s
}
1166621
public int setDateTime(java.util.Date date, boolean bDisplayOption, int iMoveMode)
    {
        if (date == null)
            return this.setData(date, bDisplayOption, iMoveMode);
        m_calendar.setTime(date);
        m_calendar.set(Calendar.HOUR_OF_DAY, DBConstants.HOUR_DATE_ONLY);
        m_calendar.set(Calendar.MINUTE, 0);
        m_calendar.set(Calendar.SECOND, 0);
        m_calendar.set(Calendar.MILLISECOND, 0);
        date = m_calendar.getTime();
        return this.setValue(date.getTime(), bDisplayOption, iMoveMode);
    }
260384
public static void setTime(Datebox datebox, Timebox timebox, Date value) {
        value = value == null ? new Date() : value;
        datebox.setValue(DateUtil.stripTime(value));
        timebox.setValue(value);
    }
1058777
public function setDatePublishStart($datePublishStart = null)
    {
        if (!isset($datePublishStart) || is_string($datePublishStart)) {
            $datePublishStart = new \DateTime($datePublishStart);
        } elseif (!$datePublishStart instanceof \DateTime) {
            throw new \InvalidArgumentException('Expected object of type \DateTime');
        }

        $this->datePublishStart = $datePublishStart;
        return $this;
    }
376768
@Override
  public void setStartTime(final long timestamp) {
    if (timestamp < 0 || ((timestamp & Const.SECOND_MASK) != 0 && 
        timestamp > 9999999999999L)) {
      throw new IllegalArgumentException("Invalid timestamp: " + timestamp);
    } else if (end_time != UNSET && timestamp >= getEndTime()) {
      throw new IllegalArgumentException("new start time (" + timestamp
          + ") is greater than or equal to end time: " + getEndTime());
    }
    start_time = timestamp;
  }
402157
public function setDeliveryStart(\DateTimeInterface $deliveryStart = null)
    {
        if (null !== $deliveryStart && $deliveryStart < date_create_from_format('U', (string) time())) {
            throw new InvalidDeliveryStartException();
        }

        $this->deliveryStart = $deliveryStart;

        return $this;
    }
127723
public void setExpiredStart(Date expiredStart) throws InvalidArgumentException {
        if (expiredStart == null) {
            throw new InvalidArgumentException("Date can't be null");
        }
        queryParms.put("expired_start", Util.dateToString(expiredStart));
    }
617278
public void setLicenseRules(java.util.Collection<String> licenseRules) {
        if (licenseRules == null) {
            this.licenseRules = null;
            return;
        }

        this.licenseRules = new java.util.ArrayList<String>(licenseRules);
    }