- Documentation
- Installation
- Data Import
- Client APIs
- SQL
- Introduction
- Statements
- Overview
- Select
- Insert
- Delete
- Update
- Create Schema
- Create Table
- Create View
- Create Sequence
- Create Macro
- Drop
- Alter Table
- Copy
- Export
- Data Types
- Expressions
- Functions
- Overview
- Numeric Functions
- Text Functions
- Pattern Matching
- Date Functions
- Timestamp Functions
- Time Functions
- Interval Functions
- Date Formats
- Date Parts
- Blob Functions
- Nested Functions
- Indexes
- Aggregates
- Window Functions
- Samples
- Pragmas
- Full Text Search
- Development
- Sitemap
- Why DuckDB
- FAQ
- Code of Conduct
- Live Demo
Timestamp Type
Version 0.2.9
Name | Aliases | Description |
---|---|---|
TIMESTAMP |
datetime | time of day (no time zone) |
A timestamp specifies a combination of DATE
(year, month, day) and a TIME
(hour, minute, second, millisecond). Timestamps can be created using the TIMESTAMP
keyword, where the data must be formatted according to the ISO 8601 format (YYYY-MM-DD hh:mm:ss
).
-- 11:30 AM at 20 September, 1992
SELECT TIMESTAMP '1992-09-20 11:30:00';
-- 2:30 PM at 20 September, 1992
SELECT TIMESTAMP '1992-09-20 14:30:00';
Functions
Search Shortcut cmd + k | ctrl + k