← getmonth operator page · time/getmonth/sc/monthly_period
pandas ✅ · DuckDB ✅
getmonth(SC_1) on a scalar monthly period, SC_1 = 2022M05, May 2022: the page does not say which month a longer period, such as a quarter, gives.
Extract time period: "The operator getmonth returns the month of the given date/time period (between 1 and 12)."
DS_r = 5, an Integer.
DS_r := getmonth(SC_1);
| SC_1 |
|---|
| 2022M05 |
{
"scalars": [
{"name": "SC_1", "type": "Time_Period"}
]
}
{
"scalars": [
{"name": "DS_r", "type": "Integer", "value": 5}
]
}