日数を時間数に変換する
日数を時間数に変換する
秒数または分数を切り捨てて時計の時刻を表示します。時間を最も近い時間、分、またはカスタム間隔に丸めます。
Truncate clock time to remove seconds or minutes. Round time to the nearest hour, minute, or custom interval.
In this example we remove the seconds component from several time values. Select 'Truncate Only Seconds' mode to get a list of time values containing only hours and minutes, in the format 'HH:MM' (the ':SS' part is removed).
This example truncates five clock times to hours. It removes both minutes and seconds and outputs only the hours with zero padding.
In this example we first truncate times to minutes and then set their seconds component to zero by attaching a zero in place of removed seconds. To do this, we turn on the seconds truncation mode and activate the option to print zero time parts. We also disable the padding option and get output times in the format 'h:m:s' where seconds will always be zeroes, resulting in the final 'h:m:0' format.