Skip to content

Conversation

@alexjpwalker
Copy link
Member

@alexjpwalker alexjpwalker commented Dec 8, 2025

Goal

We've done a pass over our date & time literal examples to keep them as intuitive as possible

Implementation

Split date & datetime examples into two blocks - one block for literals without the leading + symbol to denote a non-four-digit year - this is the default that everyone should expect & be used to - and we separate out the examples with a leading + into a separate clearly indicated block

For example:

Example date literals
2024-03-30
1920-09-21
#!test[read]
#{{
match
  let $x = 2024-03-30;
  let $y = 1920-09-21;
#}}

Example date literals (non-4-digit year)
+20000-01-01
+900-09-21
#!test[read]
#{{
match
  let $x = +20000-01-01;
  let $y = +900-09-21;
#}}

@alexjpwalker alexjpwalker merged commit ac1e8f8 into typedb:3.x-development Dec 8, 2025
3 checks passed
@alexjpwalker alexjpwalker deleted the datetime-examples branch December 8, 2025 17:02
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.

1 participant