/*
Sets time of day (the number of seconds since begining of day)
493683
function setTimeOfDay( $timestamp )
    {
        $this->Time = $timestamp % self::SECONDS_A_DAY;
        if ( $this->Time < 0 )
            $this->Time += self::SECONDS_A_DAY;
        $this->IsValid = $this->Time >= 0;
    }
1028849
function(timeObject) {
            this.hours = timeObject.hours;
            this.minutes = timeObject.minutes;
            this.amOrPm = timeObject.amOrPm;

            this._checkTimeLimits();

            this._updateLabels();

            this.resetClock();
        }
168349
function Timer(timer, clear, duration, fn) {
          this.start = +(new Date());
          this.duration = duration;
          this.clear = clear;
          this.timer = timer;
          this.fns = [fn];
        }
1207534
def set_time(self, time):
        '''
        
        '''
        times = num2date(time[:].squeeze(), time.units)
        self.time = pd.DatetimeIndex(pd.Series(times), tz=self.location.tz)
1090455
public void set(long count, long min, long max, long total, double sumOfSquares,
                    long startTime, long lastSampleTime) {
        this.count = count;
        this.min = min;
        this.max = max;
        this.total = total;
        this.sumOfSquares = sumOfSquares;
        this.startTime = startTime;
        this.lastSampleTime = lastSampleTime;
        // TODO: createTime
    }
839776
def setTime(self, time):
        
        hour = time.hour()
        minute = time.minute()
        second = time.second()

        if not self.isMilitaryTime():
            if hour > 12:
                hour -= 12
                self._timeOfDayCombo.setCurrentIndex(1)
            else:
                self._timeOfDayCombo.setCurrentIndex(0)
            hour = str(hour)
        else:
            hour = '{0:02d}'.format(hour)

        nearest = lambda x: int(round(x/5.0)*5.0)

        self._hourCombo.setCurrentIndex(self._hourCombo.findText(hour))
        self._minuteCombo.setCurrentIndex(self._minuteCombo.findText('{0:02d}'.format(nearest(minute))))
        self._secondCombo.setCurrentIndex(self._secondCombo.findText('{0:02d}'.format(nearest(second))))
440289
public void setMinute(int minute){
        minute = Math.min(Math.max(minute, 0), 59);

        if(mMinute != minute){
            int old = mMinute;
            mMinute = minute;

            if(mOnTimeChangedListener != null)
                mOnTimeChangedListener.onMinuteChanged(old, mMinute);

            if(mMode == MODE_MINUTE)
                invalidate();
        }
    }
17118
public void setStarttime(Object starttime) throws PageException {
	if (StringUtil.isEmpty(starttime)) return;
	this.starttime = DateCaster.toTime(pageContext.getTimeZone(), starttime);
    }
1327623
def setDateTimeStart(self, dtime):
        
        self._dateStart = dtime.date()
        self._timeStart = dtime.time()
        self._allDay = False
1114229
function(x) {
			if(this.time instanceof Date) {
				this.time.setSeconds(this.time.getSeconds() + x);
			}
			else {
				this.time += x;
			}
		}
904500
public void setStart(final String s) {
      SimpleDateFormat stf = new SimpleDateFormat("HH:mm:ss");
      stf.setTimeZone(TimeZone.getTimeZone("UTC"));
      try {
         start = stf.parse(s).getTime();
      } catch(ParseException ex) {
          LogLog.warn("Error parsing start value " + s, ex);
      }
  }
366088
public static void setMinTime(int mintime) {
    System.setProperty(MIN_TIME, String.valueOf(mintime));
    TimerTrace.mintime = mintime;
  }
865621
function () {
      for (var i = 0, len = values.length; i < len; i++) {
        values[i] = values[i].getTime();
      }

      add('fd');
      return this;
    }
1307498
function (time) {
      var split = time.split(':');
      var hour = parseInt(split[0]);
      var mn = parseInt(split[1]);

      if (this.settings.hour === 12) {
        var matches = time.match(/([0-1]?[0-9]):?([0-5][0-9])?\s?(am|pm|p)?/);
        var ind = matches[3];
        if (!ind) {
          ind = 'am';
        }

        hour = parseInt(matches[1]);
        mn = parseInt(matches[2]);

        if (!mn) {
          mn = 0;
        }

        if (hour === 12 && ind === 'am') {
          hour = 0;
        }
        if (hour === 12 && (ind === 'pm' || ind === 'p')) {
          ind = 'am';
        }
        if (ind === 'pm' || ind === 'p') {
          hour += 12;
        }
      }

      var position = 0;
      position += hour * this.periodInterval;
      position += mn / 60 * this.periodInterval;

      if (Math.floor(position) !== position) {
        return -1;
      }

      return position;
    }
224058
public void setTime(Date time)
    {
        String timeString = "";
        if (time != null)
    		timeString = timeFormat.format(time);
        jTextField3.setText(timeString);
        jTimeButton1.setTargetDate(time);
    }
1225795
public void setTime(String timeString)
    {
		Date time = null;
		try	{
            if ((timeString != null) && (timeString.length() > 0))
                time = timeFormat.parse(timeString);
		} catch (Exception e)	{
            time = null;
		}
        this.setTime(time);
    }
1181696
public void setMinute(com.google.api.ads.admanager.axis.v201811.MinuteOfHour minute) {
        this.minute = minute;
    }