OSS Program: Get Tinybird credits for your open source project. Apply now.Apply now
Back to columns

ClickHouse Examples

Learn how to use ClickHouse's age() function to calculate complete time units between timestamps, from nanoseconds to years, with syntax examples and practical queries.
1How to compute the difference between two timestamps in specific units using age() in ClickHouse®
Learn how to convert strings, timestamps, and date values to DateTime64(6) using ClickHouse's timestamp() function with microsecond precision and optional time addition.
1How to convert values to DateTime64(6) using timestamp() in ClickHouse®
1How to create a date from year, month, and day components in ClickHouse®
1How to retrieve current session timezone using timeZone() in ClickHouse®
1How to calculate date differences using unit boundaries with dateDiff in ClickHouse®
Subscribe to SCHEMA > Evolution
We are Tinybird and we manage data for companies like Vercel and Canva. Plus, write a newsletter covering Data, AI and everything that matters in between. Join us.

Skip the infra work. Deploy your first ClickHouse
project now.

Read the docs
Tinybird wordmark