Truncate Clock Times
Cut a clock time down by dropping the seconds (the default) or everything after the hours. You can append zeros instead of dropping parts, and you can zero-pad the remaining parts (on by default). Lines with more than three parts, or non-digit parts, are rejected with a line number.
This tool runs in your web browser: your files and text are processed on your device and are not uploaded to TidyKit servers. Free, no sign-up.
How to truncate
1. Paste times such as `14:44:20`, one per line. 2. Keep “only seconds” on to drop seconds and keep hours:minutes, or turn it off to keep only the hours. 3. Use zero-print if you want dropped parts written as 0, and zero-padding for two-digit parts.
`14:44:20` becomes `14:44` (or `14:44:00` with zero-print) when seconds are truncated, or `14` when you drop down to hours.
Privacy
The text is processed in this tab and is not uploaded. This changes how a time is written; it does not convert timezones.
Frequently asked questions
What is the difference between zero-print and zero-padding?
Zero-print puts a 0 back in the dropped place (14:44:0). Zero-padding writes two digits (14:44 or 14:44:00).
Are the times uploaded?
No.
Why did I get an error on a line?
A time can have at most three numeric parts (hours, minutes, seconds). Any other character in a part is invalid.
Can I truncate a whole column of log times?
Yes. Paste one time per line.
More Time Tools
- Check Leap Years – Check if a year is a leap year
- Convert Days to Hours – Convert days to hours
- Convert Hours to Days – Convert hours to days
- Convert Seconds to Time – Convert seconds to time format
- Convert time to decimal – Convert human time to decimal time
- Convert Time to Seconds – Convert time format to seconds
- Convert Unix ↔ Date – Convert Unix timestamps and dates in both directions.
- Cron Expression Helper – Parse and explain cron expressions in plain English
- Date Weekday Calculator – Find years when a date falls on a weekday
- Discord Timestamp Generator – Generate Discord timestamps from dates
- Time Between Dates – Calculate time between two dates