编程学问
  • 文章
  • 问题
  • 读书
  • 关于
  • 登录
  • « 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 date/time 函数 returns an array with information about sunset/sunrise and twilight begin/endphp fdf 函数 sets a flag of a fieldphp date/time 函数 取得 gmt 日期的 unix 时间戳php trader 函数 time series forecastphp gmagick sets the image border colorphp gmagick sets the image rendering intentphp imagick sets the image border colorphp imagick sets the image chromaticity green primary pointphp imagick sets the image ticks per secondphp imagick sets the size of the imagick objectphp intldateformatter sets the time zone to usephp solrinputdocument sets the index time boost value for a field
关注编程学问公众号
编程学问网 湘ICP备20001732号