datatable.time.day()¶
Added in version 1.0.0
Retrieve the “day” component of a date32 or time64 column.
Parameters¶
date
FExpr[date32]
| FExpr[time64]
A column for which you want to compute the day part.
return
FExpr[int32]
The day part of the source column.
Examples¶
DT = dt.Frame([1, 1000, 100000], stype='date32')
DT[:, {'date': f[0], 'day': dt.time.day(f[0])}]
date | day | ||
---|---|---|---|
date32 | int32 | ||
0 | 1970-01-02 | 2 | |
1 | 1972-09-27 | 27 | |
2 | 2243-10-17 | 17 |
See Also¶
The content on this page is licensed under the Creative Commons Attribution 4.0 License
(CC BY 4.0) ,
and code samples are licensed under the MIT License.