« PHP 8.3 Manual トップ
著作権 »
per page, with , order by , clip by
Results of 1 - 10 of about 20 for setTime (0.002 sec.)
DateTimeImmutable::setTime — 時刻を設定する | PHP 8.3 14002
DateTimeImmutable::setTime (PHP 5 >= 5.5.0, PHP 7, PHP 8) DateTimeImmutable::setTime — 時刻を設定する 説明 #[ \NoDiscard ( message : "as DateTimeImmutable::setTime() does not modify the object itself" )] public function DateTimeImmutable::setTime ... 遷移が起きた後の)二番目の hour を取得していました。 7.1.0 microsecond パラメータが追加されました。 例 例1 DateTimeImmutable::setTime() の例 オブジェクト指向型 <?php $date = new DateTimeImmutable ( '2001-01-01' ); $newDate = $date -> setTime ( 14 , 55 ); e ... cho $newDate -> format ( 'Y-m-d H:i:s' ) . "\n" ; $newDate = $date -> setTime ( 14 , 55 , 24 ); echo $newDate -> format ( 'Y-m-d H:i:s' ) . "\n" ; ?> 上の例の出力は、 たとえば以下のようになります。 20 ... 4:55:24 例2 範囲を超えた値が親の値に加算される例 <?php $date = new DateTimeImmutable ( '2001-01-01' ); $newDate = $date -> setTime ( 14 , 55 , 24 ); echo $newDate -> format ( 'Y-m-d H:i:s' ) . "\n" ; $newDate = $date -> setTime ( 14 , 55 , 65 ); echo $n ...
https://man.mtool.work/php/8.3/datetimeimmutable.settime.html
IntlCalendar::setTime — エポックからのカレンダーの時刻をミリ秒単位で設定する | ... 11317
IntlCalendar::setTime (PHP 5 >= 5.5.0, PHP 7, PHP 8, PECL >= 3.0.0a1) IntlCalendar::setTime — エポックからのカレンダーの時刻をミリ秒単位で設定する 説明 オブジェクト指向型 public function IntlCalendar::setTime ( float $timestamp ): bool 手続 ... う秒を無視したものをミリ秒で表したもの。 戻り値 成功時に true を返します。 失敗時に false を返します。 例 例1 IntlCalendar::setTime() <?php ini_set ( 'date.timezone' , 'Europe/Lisbon' ); ini_set ( 'intl.default_locale' , 'fr_FR' ); $cal = new IntlGregori ... /* In Europe/Lisbon, on 2013-10-27 at 0200, the clock goes back one hour and the timezone from UTC+01 to UTC+00 */ $cal -> setTime ( strtotime ( '2013-10-27 00:30:00 UTC' ) * 1000. ); echo IntlDateFormatter :: formatObject ( $cal , IntlDateFormatter :: ... FULL ), "\n" ; $cal -> setTime ( strtotime ( '2013-10-27 01:30:00 UTC' ) * 1000. ); echo IntlDateFormatter :: formatObject ( $cal , IntlDateFormatter :: ...
https://man.mtool.work/php/8.3/intlcalendar.settime.html
DateTime::setTime — 時刻を設定する | PHP 8.3 10808
DateTime::setTime date_time_set (PHP 5 >= 5.2.0, PHP 7, PHP 8) DateTime::setTime -- date_time_set — 時刻を設定する 説明 オブジェクト指向型 public function DateTime::setTime ( int $hour , int $minute , int $second = 0 , int $microsecond = 0 ... cond = 0 , int $microsecond = 0 ): DateTime DateTime オブジェクトの現在時刻を別の時刻にリセットします。 DateTimeImmutable::setTime() に似ていますが、 DateTime を使って動作します。 手続き型のバージョンは、 DateTime オブジェクトを最初の引数として取ります。 ... 遷移が起きた後の)二番目の hour を取得していました。 7.1.0 パラメータ microsecond が追加されました。 参考 DateTimeImmutable::setTime() - 時刻を設定する 他のマニュアルの関連ページ Python datetime DuckDB Time Types Python datetime DuckDB Date Part Functions ... Linux JM gettimeofday(2) Linux JM settimeofday(2) ...
https://man.mtool.work/php/8.3/datetime.settime.html
date_time_set — DateTime::setTime() | PHP 8.3 9618
date_time_set (PHP 5 >= 5.2.0, PHP 7, PHP 8) date_time_set — DateTime::setTime() のエイリアス 説明 この関数は次の関数のエイリアスです。 DateTime::setTime() 他のマニュアルの関連ページ Python datetime Python datetime Linux JM praliases(8) Dja ...
https://man.mtool.work/php/8.3/function.date-time-set.html
IntlCalendar::equals — ふたつの IntlCalendar オブジェクトの時刻を比較する | PHP... 9176
IntlCalendar::equals (PHP 5 >= 5.5.0, PHP 7, PHP 8, PECL >= 3.0.0a1) IntlCalendar::equals — ふたつの IntlCalendar オブジェクトの時刻を比較する 説明 オブジェクト指向型 public function IntlCalendar::equals ( IntlCalendar $other ): bool 手続き ... //TRUE //The locale is not included in the comparison $cal2 = IntlCalendar :: createInstance ( NULL , 'pt_PT' ); $cal2 -> setTime ( $cal1 -> getTime ()); var_dump ( $cal1 -> equals ( $cal2 )); //TRUE //And set fields state is not included as well $cal2 ... //TRUE //Neither is the calendar type $cal2 = IntlCalendar :: createInstance ( NULL , 'es_ES@calendar=islamic' ); $cal2 -> setTime ( $cal1 -> getTime ()); var_dump ( $cal1 -> equals ( $cal2 )); //TRUE //Only the time is $cal2 = clone $cal1 ; $cal2 -> se ...
https://man.mtool.work/php/8.3/intlcalendar.equals.html
DateTimeImmutable クラス | PHP 8.3 8513
DateTimeImmutable クラス (PHP 5 >= 5.5.0, PHP 7, PHP 8) はじめに 日付と時刻を表現します。 このクラスは DateTime と同じ振る舞いをします。 但し、 DateTime::modify() のような、 状態を変更して新しいオブジェクトを返すメソッドが呼び出された時を除 ... ct itself" )] public function setMicrosecond ( int $microsecond ): static #[ \NoDiscard ( message : "as DateTimeImmutable::setTime() does not modify the object itself" )] public function setTime ( int $hour , int $minute , int $second = 0 , int $microse ... cond = 0 ): DateTimeImmutable #[ \NoDiscard ( message : "as DateTimeImmutable::setTimestamp() does not modify the object itself" )] public function setTimestamp ( int $timestamp ): DateTimeImmutable #[ \NoDisc ... ard ( message : "as DateTimeImmutable::setTimezone() does not modify the object itself" )] public function setTimezone ( DateTimeZone $timezone ): DateTimeImmutable #[ \ ...
https://man.mtool.work/php/8.3/class.datetimeimmutable.html
日付・時刻 | PHP 8.3 8139
日付・時刻 はじめに DateTimeImmutable と、 それに関連するクラスを使うと、日付/時刻 に関する情報を表現できます。 このオブジェクトは、日付/時刻 の文字列表現か、 現在のシステム時刻から作成できます。 この情報を変更したり、 フォーマット化するため ... 設定する DateTime::setISODate — ISO 形式の日付を設定する DateTime::setMicrosecond — 時刻のマイクロ秒部分を設定する DateTime::setTime — 時刻を設定する DateTime::setTimestamp — Unix タイムスタンプを用いて日付と時刻を設定する DateTime::setTimezone — DateTime ... ble::setISODate — ISO 日付を設定する DateTimeImmutable::setMicrosecond — 時刻のマイクロ秒部分を設定する DateTimeImmutable::setTime — 時刻を設定する DateTimeImmutable::setTimestamp — Unix タイムスタンプを用いて日付と時刻を設定する DateTimeImmutable::setT ... 日付と場所についての日の出時刻を返す date_sunset — 指定した日付と場所についての日の入り時刻を返す date_time_set — DateTime::setTime のエイリアス date_timestamp_get — DateTime::getTimestamp のエイリアス date_timestamp_set — DateTime::setTimestamp のエイリ ...
https://man.mtool.work/php/8.3/book.datetime.html
DateTime クラス | PHP 8.3 8055
DateTime クラス (PHP 5 >= 5.2.0, PHP 7, PHP 8) はじめに 日付と時刻を表現するクラスです。 このクラスは、 DateTimeImmutable と同じ振る舞いをします。 但し、 DateTime::modify() のような、 オブジェクトそのものを変更するメソッドが呼び出された時を ... r , int $week , int $dayOfWeek = 1 ): DateTime public function setMicrosecond ( int $microsecond ): static public function setTime ( int $hour , int $minute , int $second = 0 , int $microsecond = 0 ): DateTime public function setTimestamp ( int $timesta ... mp ): DateTime public function setTimezone ( DateTimeZone $timezone ): DateTime public function sub ( DateInterval $interval ): DateTime public function diff ( D ... 設定する DateTime::setISODate — ISO 形式の日付を設定する DateTime::setMicrosecond — 時刻のマイクロ秒部分を設定する DateTime::setTime — 時刻を設定する DateTime::setTimestamp — Unix タイムスタンプを用いて日付と時刻を設定する DateTime::setTimezone — DateTime ...
https://man.mtool.work/php/8.3/class.datetime.html
DateTimeImmutable::setDate — 日付を設定する | PHP 8.3 7834
DateTimeImmutable::setDate (PHP 5 >= 5.5.0, PHP 7, PHP 8) DateTimeImmutable::setDate — 日付を設定する 説明 #[ \NoDiscard ( message : "as DateTimeImmutable::setDate() does not modify the object itself" )] public function DateTimeImmutable::s ... 下となります。 2001-02-28 2001-03-01 2002-02-03 参考 DateTimeImmutable::setISODate() - ISO 日付を設定する DateTimeImmutable::setTime() - 時刻を設定する 他のマニュアルの関連ページ Django 1.7.11 Django mixins-date-based Python calendar DuckDB Timestamp Func ...
https://man.mtool.work/php/8.3/datetimeimmutable.setdate.html
DateTimeImmutable::modify — タイムスタンプを変更した新しいオブジェクトを作る | ... 7698
DateTimeImmutable::modify (PHP 5 >= 5.5.0, PHP 7, PHP 8) DateTimeImmutable::modify — タイムスタンプを変更した新しいオブジェクトを作る 説明 #[ \NoDiscard ( message : "as DateTimeImmutable::modify() does not modify the object itself" )] publi ... を引く DateTimeImmutable::setDate() - 日付を設定する DateTimeImmutable::setISODate() - ISO 日付を設定する DateTimeImmutable::setTime() - 時刻を設定する DateTimeImmutable::setTimestamp() - Unix タイムスタンプを用いて日付と時刻を設定する 他のマニュアルの関連 ...
https://man.mtool.work/php/8.3/datetimeimmutable.modify.html
PREV 1 2 NEXT