Add `V` format specifier for formatting and `createFromFormat`
オープン
@derickr がすでに取り組んでいます。
2024年3月18日 から。
Extension: date
Feature
Status: Needs Triage
- 主要言語
- C
- スター
- 40.4k
- フォーク
- 8.2k
- 平均マージ
- 2日 13時間
- マージ済み PR(30日)
- 96
説明
Description
The following code:
<?php
$t = microtime(true);
$now = DateTime::createFromFormat('U.u', $t);
?>
Can fail, in case $t does only contain full seconds. Add V to allow for parsing any seconds + fraction of seconds, as well as add V to DateTimeInterface::format to reproduce the same value.
This would also allow for accepting any microtime(true) output.
PHP Version
PHP 8.3.3
Operating System
コントリビューションガイド
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
評価
この issue はまだ評価されていません。