← monthtoday operator page · time/monthtoday/sc/three_months_and_ten_days
pandas ✅ · DuckDB ✅
monthtoday(SC_1) with SC_1 = P3M10D, a String, the page's Example 3.
Duration to number days: monthtoday (P3M10D); "returns 100", "according to ISO 8601 M = 30D".
DS_r = 100, an Integer: 3 × 30 + 10.
#394: a Duration holds only a period indicator (A, S, Q, M, W, D), so the ISO 8601 durations that daytoyear and daytomonth return and yeartoday and monthtoday take are Strings.
DS_r := monthtoday(SC_1);
| SC_1 |
|---|
| P3M10D |
{
"scalars": [
{"name": "SC_1", "type": "String"}
]
}
{
"scalars": [
{"name": "DS_r", "type": "Integer", "value": 100}
]
}