编程学问
  • 文章
  • 问题
  • 读书
  • 关于
  • 登录
  • « DateTimeImmutable::setISODate
  • DateTimeImmutable::setTimestamp »
  • PHP Manual
  • DateTimeImmutable
  • Sets the time

DateTimeImmutable::setTime

(PHP 5 >= 5.5.0, PHP 7)

DateTimeImmutable::setTime — Sets the time

说明

public DateTimeImmutable::setTime ( int $hour , int $minute [, int $second = 0 [, int $microseconds = 0 ]] ) : DateTimeImmutable

Like DateTime::setTime() but works with DateTimeImmutable.

相关文章
php datetimeimmutable parses a time string according to a specified formatphp datetimeimmutable sets the datephp datetimeimmutable sets the iso datephp datetimeimmutable sets the timephp datetimeimmutable sets the date and time based on a unix timestampphp datetimeimmutable sets the time zonephp date/time 函数 别名 datetimeimmutable createfromformatphp date/time 函数 别名 datetimeimmutable constructphp informix 函数 sets the default return value on a fetch rowphp imap 函数 sets the acl for a given mailboxphp imagick sets the image gammaphp imagick sets the image resolutionphp imagick sets the limit for a particular resourcephp intldateformatter sets formatterʼs timezonephp intldateformatter sets the time zone to usephp soapclient sets soap headers for subsequent callsphp soapserver sets the class which handles soap requestsphp solrdismaxquery directly sets boost query parameter bq php solrinputdocument sets the index time boost value for a fieldphp solrquery sets the group format result structure group.format parameter
关注编程学问公众号
编程学问网 湘ICP备20001732号