Update index.md

This commit is contained in:
Denny Crane 2024-09-04 20:56:16 -03:00 committed by GitHub
parent e1b29eae17
commit ec8d0f94fe
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.
:::