The time data type
Mark Needham
ClickHouse 25.6 introduced the Time data type for storing time values. This video covers how to use the new Time and Time64 data types in your ClickHouse queries and tables.
What we'll cover:
- Creating Time values with casting and toTime() function
- Using Time64 for millisecond/nanosecond precision
- Required settings: enable_time_time64_type
- Practical example with running splits data
- Aggregating Time data (max, min, and workarounds for average/quantiles)
- Converting between Time types and Unix timestamps
We'll work through a real example using running data with moving time and elapsed time columns, showing how Time types make the data more readable compared to storing raw seconds.
Recent videos
View all Videos
Open House
Open House 2026: Day 1 Keynote
The latest ClickHouse announcements, featuring real-world use cases from Shopify, Zoox, Visa, and Cisco.

Open House
Fireside Chat: The state of data and AI with Bret Taylor (Sierra) and Aaron Katz (ClickHouse)
Aaron Katz (CEO, ClickHouse) and Bret Taylor (Co-Founder Sierra, Chairman of the Board, OpenAI) have an open conversation on the state of AI.

Open House, ClickHouse
How to build a great database (Alexey Milovidov)
The principles behind building a great database, and the new frontiers shaping the field.

Open House
Fireside Chat: Ecosystem and technology trends (Vercel, dbt Labs, CoreWeave)
Aaron Katz (CEO, ClickHouse), Guillermo Rauch (CEO, Vercel), Tristan Handy (CEO, dbt Labs), and Lukas Biewald (SVP of AI, CoreWeave) discuss how AI is changing the data landscape.