Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
php -r 'setlocale(LC_ALL, "ru"); echo date("F", time()), "\n";'ロシア語ロケールを設定しているにもかかわらず、「June」を英語で出力します。
php -r 'setlocale(LC_ALL, "ru"); echo date("F", time()), "\n";'
(ロシアの月名で) 必要に応じて機能しないのはなぜですか?
ロケールを考慮して日付をフォーマットするには、strftime代わりに使用する必要があります。date
strftime
date