Merge pull request #69277 from den-crane/patch-73

Doc. Remove a misleading statement
This commit is contained in:
Nikita Mikhaylov 2024-09-05 12:01:44 +00:00 committed by GitHub
commit 2b0fe084ae
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -265,8 +265,6 @@ SELECT now() AS current_date_time, current_date_time + INTERVAL '4' day + INTERV
└─────────────────────┴────────────────────────────────────────────────────────────┘
```
You can work with dates without using `INTERVAL`, just by adding or subtracting seconds, minutes, and hours. For example, an interval of one day can be set by adding `60*60*24`.
:::note
The `INTERVAL` syntax or `addDays` function are always preferred. Simple addition or subtraction (syntax like `now() + ...`) doesn't consider time settings. For example, daylight saving time.
:::