Skip to content

Commit

Permalink
function microtime2time($microtime): int { stringからintに変更。
Browse files Browse the repository at this point in the history
  • Loading branch information
satopian committed Jan 1, 2025
1 parent 578d844 commit aaf6905
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions petitnote/functions.php
Original file line number Diff line number Diff line change
Expand Up @@ -1265,10 +1265,10 @@ function time_left_to_close_the_thread ($postedtime): string {
calc_remaining_time_to_close_thread($timeleft) : '';
}
// マイクロ秒を秒に戻す
function microtime2time($microtime): string {
function microtime2time($microtime): int {
$microtime=(string)$microtime;
$time=(strlen($microtime)>15) ? substr($microtime,0,-6) : substr($microtime,0,-3);
return $time;
return (int)$time;
}

//POSTされた値をログファイルに格納する書式にフォーマット
Expand Down

0 comments on commit aaf6905

Please sign in to comment.