Skip to main content

days

Return the days component of a time or duration.


Examples

Get the days value of the current time:

now.days

Extract days from a parsed duration:

parse.duration("2d3h").days