Time operators
---
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
B["Time operators"]:::block
time__period_indicator["Period indicator · period_indicator<br/>🟢4"]:::ok
time__fill_time_series["Fill time series · fill_time_series<br/>🟢8"]:::ok
time__flow_to_stock["Flow to stock · flow_to_stock<br/>🟢3"]:::ok
time__stock_to_flow["Stock to flow · stock_to_flow<br/>🟢3"]:::ok
time__timeshift["Time shift · timeshift<br/>🟢3"]:::ok
time__time_agg["Time aggregation · time_agg<br/>🟢8"]:::ok
time__current_date["Actual time · current_date<br/>🟢1"]:::ok
time__datediff["Days between two dates · datediff<br/>🟢4"]:::ok
time__dateadd["Add time unit to date · dateadd<br/>🟢4"]:::ok
time__getyear["Extract the year · getyear<br/>🟢2"]:::ok
time__getmonth["Extract the month · getmonth<br/>🟢2"]:::ok
time__dayofmonth["Extract the day of the month · dayofmonth<br/>🟢2"]:::ok
time__dayofyear["Extract the day of the year · dayofyear<br/>🟢2"]:::ok
time__daytoyear["Number of days to years and days · daytoyear 📌<br/>🟢2"]:::ok
time__daytomonth["Number of days to months and days · daytomonth 📌<br/>🟢2"]:::ok
time__yeartoday["Years and days to number of days · yeartoday 📌<br/>🟢2"]:::ok
time__monthtoday["Months and days to number of days · monthtoday 📌<br/>🟢2"]:::ok
time__period_indicator --- B
time__fill_time_series --- B
time__flow_to_stock --- B
time__stock_to_flow --- B
time__timeshift --- B
time__time_agg --- B
time__current_date --- B
time__datediff --- B
time__dateadd --- B
B --- time__getyear
B --- time__getmonth
B --- time__dayofmonth
B --- time__dayofyear
B --- time__daytoyear
B --- time__daytomonth
B --- time__yeartoday
B --- time__monthtoday
click time__period_indicator href "period_indicator.html"
click time__fill_time_series href "fill_time_series.html"
click time__flow_to_stock href "flow_to_stock.html"
click time__stock_to_flow href "stock_to_flow.html"
click time__timeshift href "timeshift.html"
click time__time_agg href "time_agg.html"
click time__current_date href "current_date.html"
click time__datediff href "datediff.html"
click time__dateadd href "dateadd.html"
click time__getyear href "getyear.html"
click time__getmonth href "getmonth.html"
click time__dayofmonth href "dayofmonth.html"
click time__dayofyear href "dayofyear.html"
click time__daytoyear href "daytoyear.html"
click time__daytomonth href "daytomonth.html"
click time__yeartoday href "yeartoday.html"
click time__monthtoday href "monthtoday.html"
Operators
Operator |
Status |
Forms |
|---|---|---|
Period indicator |
🟢 |
4 |
Fill time series |
🟢 |
8 |
Flow to stock |
🟢 |
3 |
Stock to flow |
🟢 |
3 |
Time shift |
🟢 |
3 |
Time aggregation |
🟢 |
8 |
Actual time |
🟢 |
1 |
Days between two dates |
🟢 |
4 |
Add time unit to date |
🟢 |
4 |
Extract the year |
🟢 |
2 |
Extract the month |
🟢 |
2 |
Extract the day of the month |
🟢 |
2 |
Extract the day of the year |
🟢 |
2 |
Number of days to years and days |
🟢 |
2 |
Number of days to months and days |
🟢 |
2 |
Years and days to number of days |
🟢 |
2 |
Months and days to number of days |
🟢 |
2 |
Types
Operator |
number |
integer |
time |
date |
time_period |
duration |
any type |
|---|---|---|---|---|---|---|---|
in |
out |
||||||
in · out |
in · out |
in · out |
out |
||||
in · out |
in · out |
in · out |
in · out |
||||
in · out |
in · out |
in · out |
in · out |
||||
in |
in · out |
in · out |
in · out |
out |
|||
in · out |
in · out |
in · out |
in |
||||
out |
|||||||
out |
in |
in |
|||||
in |
in · out |
in · out |
in |
in |
out |
||
out |
in |
in |
|||||
out |
in |
in |
|||||
out |
in |
in |
|||||
out |
in |
in |
|||||
in |
out |
||||||
in |
out |
||||||
out |
in |
||||||
out |
in |
Forms that are not green
Every form is 🟢 or 🛡️.