microsecond()

Extract the microsecond component from a date or timestamp

Reference: DuckDB 1.4.4

Arguments & returns

7 overloads

microsecond(ts)

Scalar
Overload link ts Returns
#01 DATE BIGINT
#02 INTERVAL BIGINT
#03 TIME BIGINT
#04 TIME WITH TIME ZONE BIGINT
#05 TIME_NS BIGINT
#06 TIMESTAMP BIGINT
#07 TIMESTAMP WITH TIME ZONE BIGINT

Example

microsecond example
SQL
Haybarn WASM 2.0.0-rc12 ยท In your browser

Engine example ยท Run to view results.