+
+ 120) {
+ $hours = number_format($playtime / 60, 2, '.', '');
+ printf('
%s
', esc_html(sprintf('游戏时长: %s 小时', $hours)));
+ } else {
+ printf('
%s
', esc_html(sprintf('游戏时长: %d 分钟', $playtime)));
+ }
+ $lastPlayed = wp_date('Y-m-d H:i:s', $game['rtime_last_played']);
+ if ($playtime == 0) {
+ printf('
%s
', esc_html(sprintf('尚未游玩')));
+ } else {
+ printf('
%s
', esc_html(sprintf('上次启动: %s', $lastPlayed)));
+ }
+ ?>
+