Convert Days to Hours
Convert days to hours
Truncate clock time to remove seconds or minutes. Round time to the nearest hour, minute, or custom interval.
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.
Convert days to hours
Convert hours to days
Convert seconds to time format
Convert time format to seconds
Calculate time between two dates
Generate and understand cron expressions
Check if a year is a leap year
Convert Unix timestamp to date
Convert human time to decimal time
Generate Discord timestamps from dates