1-- SQLite --
2-- Every database system has it's own set of
3-- functions specifically tasked for handling dates and times.
4-- These functions are not standardized.
5-- Date and time related functions for SQLite
6
7SELECT DATETIME('now'); --> Result UTC Time: 2020-11-24 11:31:02
8SELECT DATE('now'); --> Result: 2020-11-24
9SELECT DATETIME('now', '+1 day'); --> Result UTC Time: 2020-11-25 11:34:56
10SELECT DATETIME('now', '+3 day'); --> Result UTC Time: 2020-11-27 11:35:30
11SELECT DATETIME('now', '-1 month'); --> Result UTC Time: 2020-10-24 11:35:57
12SELECT DATETIME('now', '+1 year'); --> Result UTC Time: 2021-11-24 11:36:29
13SELECT DATETIME(
14 'now',
15 '+3 hours',
16 '+27 minutes',
17 '-1 day',
18 '+5 years')
19; --> Result UTC Time: 2025-11-23 15:08:55