@param string|null $modifier

@return TimePoint
485996
public function getTimepoint($modifier = null)
    {
        $now = $this->clock->read();
        if ($modifier) {
            $now->modify($modifier);
        }

        return $now;
    }
273526
static public function create_time($value=null)
    {
        return (empty($value)) ? time() : (is_numeric($value) ? $value : strtotime($value));
    }
1313125
public function setTimeout($time=null)
    {
        if (!is_null($time)) {
           set_time_limit($time)||ini_set("max_execution_time", $time);
        }
        return $this;
    }
949688
public function of($type, $modifier = TransactionModifier::NONE)
    {
        if (!array_key_exists($type, $this->rules)) {
            $this->rules[$type] = [];
        }

        $target = new ValidationTarget($this, $type, $modifier);
        $this->rules[$type][] = $target;
        return $target;
    }
951234
public static function diffFormatter($formatter = null)
    {
        if ($formatter === null) {
            // Use the static property defined in chronos.
            if (static::$diffFormatter === null) {
                static::$diffFormatter = new RelativeTimeFormatter();
            }

            return static::$diffFormatter;
        }

        return static::$diffFormatter = $formatter;
    }
449343
public function currentUtcDatetime()
    {
        if ($this->timeFormat === static::$timeFormatDatetime) {
            return gmdate('Y-m-d H:i:s');
        }
        if ($this->timeFormat === static::$timeFormatTimestamp) {
            return time();
        }
        return null;
    }
257843
public function keyDown($char, $modifier = null)
    {
        $this->getDriver()->keyDown($this->getXpath(), $char, $modifier);
    }
696457
public function setBronzetime($v)
    {
        if ($v !== null) {
            $v = (int) $v;
        }

        if ($this->bronzetime !== $v) {
            $this->bronzetime = $v;
            $this->modifiedColumns[MapTableMap::COL_BRONZETIME] = true;
        }

        return $this;
    }
899565
protected function modifierDate($input)
    {
        if (empty($input)) return NULL;
        //if ($input == '0000-00-00 00:00:00') return NULL;

        if ($input instanceof \DateTime) return $input;

        try {
            $output = new \DateTime($input);
            $output->setTimeZone(new \DateTimeZone('America/New_York'));

            return $output;
        } catch (\Exception $exception) {
            if (!empty($this->log)) $this->log->error('Failed to convert \DateTime object from string "' . $input . '"', $exception);
        }

        return NULL;
    }
633093
public function setTimeFrom($date = null)
    {
        $date = $this->resolveCarbon($date);

        return $this->setTime($date->hour, $date->minute, $date->second, $date->microsecond);
    }
1093100
public function processTime($timeout=NULL) {
		if (is_null($timeout)) {
			return $this->__process(NULL);
		} else {
			return $this->__process($timeout * 1000000);
		}
	}
763405
public static function init($time = null)
    {
        try {
            $interval = new self( $time );
            return $interval;
        } catch( \Exception $e ) {
            return null;
        }
    }
234271
public static function date($time = null, $todayIfNull = true, $format = 'Y-m-d')
    {
        if (empty($time)) {
            return $todayIfNull ? date($format) : null;
        } else {
            return date($format, $time);
        }
    }
1289259
public function hasModifier($modifier)
    {
        foreach ($this->visibility as $visibility) {
            if ($visibility == $modifier) {
                return true;
            }
        }

        return false;
    }
1361990
public function set($value, $modifierType = null, $modifier = null)
    {
        $value = $this->getExpr()->value($value);
        $value->setMapping($this->getMapping());

        if ($modifier !== null) {
            $modifier = $this->getExpr()->value($modifier);
            $modifier->setMapping($this->getMapping());
        }

        return $this->getExpr()->addUpdate(new Set(
            $this,
            $value,
            $modifierType,
            $modifier
        ));
    }
92455
public function setSecond( ?int $value = null ) : Time
   {

      if ( null === $value )
      {

         $this->_seconds = static::CurrentSecond();

         return $this;

      }

      $this->_seconds = (int)$value;

      if ( $this->_seconds < 0 )
      {
         $this->_seconds = 0;
      }

      if ( $this->_seconds > 59 )
      {
         $this->_seconds = 59;
      }

      return $this;

   }
729947
public function setTimestamp($timestamp = null)
    {
        $this->timestamp = (string)($timestamp ?? $this->modified());

        return $this;
    }