natural_day: Natural Day

Description Usage Arguments Value Examples

Description

For date values that are tomorrow, today or yesterday compared to present day returns representing string. Otherwise, returns a string formatted according to fmt

Usage

1
natural_day(value, fmt = "%b %d")

Arguments

value

A date value

fmt

Optional formatting string for dates not yesterday, today, tomorrow

Value

A nicely formatted date

Examples

1
2

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