Actual time · current_date
🟢 1 of 1 form all ok · VTL 2.2 Reference Manual ↗ · vtlengine 1.10.0rc3 (9e1c81a6) · pandas 2.3.3 · DuckDB 1.5.5
🟢 all ok🟡 partially implemented🛡️ refused with an error🔴 not implemented or crash🔵 engines differ ✅ match · ❌ wrong result · 🛡 guarded error (code) · 💥 crash · 📌 team decision
---
config:
flowchart:
useMaxWidth: false
---
flowchart LR
classDef ok fill:#d4edda,stroke:#28a745,color:#000
classDef partial fill:#fff3cd,stroke:#ffc107,color:#000
classDef refused fill:#d4edda,stroke:#28a745,stroke-width:3px,stroke-dasharray: 2 2,color:#000
classDef missing fill:#f8d7da,stroke:#dc3545,color:#000
classDef diverge fill:#cce5ff,stroke:#007bff,color:#000
classDef block fill:#2b3a4a,stroke:#2b3a4a,color:#fff,font-weight:bold
classDef ext fill:#fff,stroke:#666,color:#000,stroke-dasharray: 5 5
O["Actual time · current_date<br/>🟢1"]:::ok
v_sc["current_date()"]:::ok
v_sc --- O
click v_sc href "#form-sc"
Types
Takes nothing · Gives date
Comes from: nothing: it takes no operand
Goes to · date — 13 operators in 3 blocks 🟢13
General purpose operators (1) 🟢1
Time operators (11) 🟢11
Fill time series
fill_time_seriesFlow to stock flow_to_stockStock to flow stock_to_flowTime shift timeshiftTime aggregation time_aggDays between two dates datediffAdd time unit to date dateaddExtract the year getyearExtract the month getmonthExtract the day of the month dayofmonthExtract the day of the year dayofyearDefinitions (VTL-DL) (1) 🟢1
Goes to · operators that take any scalar — 49 operators in 9 blocks 🟢49
General purpose operators (6) 🟢6
Join operators (4) 🟢4
Comparison operators (11) 🟢11
Set operators (4) 🟢4
Aggregate and Analytic operators (10) 🟢10
Data validation operators (1) 🟢1
Conditional operators (3) 🟢3
Clause operators (9) 🟢9
Definitions (VTL-DL) (1) 🟢1
Forms
current_date() 🟢 · nothing → date
Date of the run 🟢 pandas ✅ · DuckDB ✅
- Tests:
DS_r := current_date();, the page’s Example 1, checked by property, as its value changes with the day of the run.- Manual:
Actual time: “The operator current_date returns the current time as a date type.”
- Expected:
A Date equal to the date of the run; the
nullofexpected/scalars.jsonis a placeholder that the check does not read.
script.vtl
DS_r := current_date();
Name |
Type |
Value |
|---|---|---|
|
Date |
|
Files: script.vtl · expected/scalars.json · example page ↗