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.
$t = '01:00:00'; strtotime('January 1, 1970,'.$t)
タイムゾーンを次のように変更するとすぐにゼロが返されます。
date_default_timezone_set('Europe/Stockholm');
どうして?$tに保存されている時間を秒単位で取得したいと思います。
ありがとう/E
1970年1月1日01h00ストックホルム時間は0を返す必要があります。UTCでは1970年1月1日00h00です。