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])}]
dateday
date32int32
01970-01-022
11972-09-2727
22243-10-1717

See Also

  • year() – retrieve the “year” component of a date

  • month() – retrieve the “month” component of a date