首页
学习
活动
专区
工具
TVP
发布
精选内容/技术社群/优惠产品,尽在小程序
立即前往

DateTimeImmutable::setTime

(PHP 5 >= 5.5.0, PHP 7)

DateTimeImmutable :: setTime - 设置时间

描述

代码语言:javascript
复制
public DateTimeImmutable DateTimeImmutable::setTime ( int $hour , int $minute [, int $second = 0 [, int $microseconds = 0 ]] )

像DateTime :: setTime(),但与DateTimeImmutable一起使用。

← DateTimeImmutable::setISODate

DateTimeImmutable::setTimestamp →

扫码关注腾讯云开发者

领取腾讯云代金券