From aaf690502ddeb1a327d858f92ccfe95f0fdad4c3 Mon Sep 17 00:00:00 2001 From: satopian Date: Wed, 1 Jan 2025 15:25:45 +0900 Subject: [PATCH] =?UTF-8?q?function=20microtime2time($microtime):=20int=20?= =?UTF-8?q?{=20string=E3=81=8B=E3=82=89int=E3=81=AB=E5=A4=89=E6=9B=B4?= =?UTF-8?q?=E3=80=82?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- petitnote/functions.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/petitnote/functions.php b/petitnote/functions.php index 25b9b7a..a2efd72 100644 --- a/petitnote/functions.php +++ b/petitnote/functions.php @@ -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された値をログファイルに格納する書式にフォーマット