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.
ミリ秒単位の時間をフォーマットの日付に変換する必要があります:YYYY-mm-dd hh:mm:ss助けてください
「ミリ秒」は時間を意味するのではなく、継続時間を意味します。UNIXエポックタイムスタンプに1000を掛け、ミリ秒を追加したようです。
use POSIX qw( strftime ); my $formatted = strftime("%Y-%m-%d %H:%M:%S", localtime($ts/1000));
またはgmtime
gmtime