Returns the current timestamp in UTC. This is the most common way to get the current date and time in BigQuery.
TIMESTAMPDiperbarui: 13 Jun 2026CURRENT_TIMESTAMP()Fungsi ini tidak memerlukan parameter.
1 SELECT 2 CURRENT_TIMESTAMP() as now_utc, 3 TIMESTAMP(CURRENT_TIMESTAMP(), 'Asia/Jakarta') as now_jakarta;
Get the current timestamp in UTC.
| now_utc | now_jakarta |
|---|---|
| 2024-01-15 14:30:00.123456 UTC | 2024-01-15 21:30:00.123456 |
1 INSERT INTO `project.dataset.audit_log` 2 (action, user_id, created_at) 3 VALUES 4 ('login', 'user123', CURRENT_TIMESTAMP());
Use CURRENT_TIMESTAMP() to populate audit timestamp columns.
1 SELECT * 2 FROM `project.dataset.events` 3 WHERE event_time >= TIMESTAMP_SUB(CURRENT_TIMESTAMP(), INTERVAL 1 HOUR);
Filter events that occurred within the last hour.
Sudah paham CURRENT_TIMESTAMP? Latih langsung di browser
Latihan interaktif, langsung di browser.