Skip to content

update time function docs for the timestamp type - #7714

Merged
philrz merged 1 commit into
mainfrom
docs-time-functions
Nov 24, 2026
Merged

philrz merged 1 commit into
mainfrom
docs-time-functions

Conversation

@philrz

@philrz philrz commented Nov 24, 2026

Copy link
Copy Markdown
Contributor

This is the first of a few PRs from a pass over the function docs, checking each page against what super does on current main. It covers the Time functions plus the timestamp type page.

  • update type system for better interoperability #7510 renamed the time type to timestamp, but the Time function pages and the Date/Times type page still said time. They now say timestamp, and so do the one-word mentions of the type in the sort, infer, search, comparisons, statements, and super db pages and the jq tutorial (whose examples already showed timestamp). The type page also no longer calls timestamp unsigned or says INTERVAL is an alias for duration (it's a reserved type now, as are date and time), and it says what SQL DATE literals and casts produce today.
  • strftime: corrected the directive table (%D is zero-padded, %I and %l run from 1 to 12, %V is the ISO 8601 week, and %c/%x/%X don't depend on a locale), added the missing %h, and noted that output is always UTC, that %c/%x/%X use fixed formats, and that there's no fractional-seconds directive.
  • date_part: documented the SQL EXTRACT(part FROM ts) form, which compiles to date_part.
  • bucket: explained where bucket boundaries fall (counted from the Unix epoch, so 7d buckets start on Thursdays) and what a zero span does, and added examples of counting by hour, weekly buckets, and bucketing durations.
  • now: updated the switch sketch to the current syntax and refreshed the sample output.

#7510 renamed the time type to timestamp.  Update the Time function
pages and the Date/Times type page to match, along with mentions of
the type on other pages.  Also correct the strftime directive table,
document the SQL EXTRACT form of date_part, and add bucket examples.
@philrz philrz self-assigned this Nov 24, 2026
@philrz
philrz requested a review from a team November 24, 2026 01:05
@philrz
philrz merged commit 1563608 into main Nov 24, 2026
4 checks passed
@philrz
philrz deleted the docs-time-functions branch November 24, 2026 16:41
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants