← getyear operator page · time/getyear/sc/quarterly_period
pandas ✅ · DuckDB ✅
getyear(SC_1) on a scalar time period, SC_1 = 2022Q1, the page's valid syntax getyear (2022Q1).
Extract time period: "The operator getyear returns the year of the given date/time period."
DS_r = 2022, an Integer: the first quarter of 2022 is in 2022.
DS_r := getyear(SC_1);
| SC_1 |
|---|
| 2022Q1 |
{
"scalars": [
{"name": "SC_1", "type": "Time_Period"}
]
}
{
"scalars": [
{"name": "DS_r", "type": "Integer", "value": 2022}
]
}