natural_time: Convert times to natural values relative to now.

Description Usage Arguments Examples

Description

Given a datetime or a number of seconds, return a natural representation of that resolution that makes sense. Ago/From now determined by positive or negative values.

Usage

1
natural_time(value, use_months = TRUE)

Arguments

value

a datetime or a number of seconds

use_months

Boolean whether we should (imprecisely) use months as a unit

Examples

1
2

newtux/humanize documentation built on May 25, 2019, 10:35 p.m.