Homec4science

Relative date helper, for 'today' and 'yesterday'

Authored by Edward Speyer <edward@fb.com> on Mar 28 2012, 03:16.

Description

Relative date helper, for 'today' and 'yesterday'

Summary:
Format a date as 'today', 'yesterday', or 'Mar 27 2012'. Optionally,
the final example can be rendered 'on Mar 27 2012' for things like:

$excuse =
  'I fell out of a window '.
  phabricator_on_rel_date($time, $me);

Test Plan: Tested in my sandbox!!!!

Reviewers: epriestley

Reviewed By: epriestley

CC: aran, epriestley

Differential Revision: https://secure.phabricator.com/D2035

Details

Committed
Edward Speyer <edward@fb.com>Mar 31 2012, 07:15
Pushed
aubortJan 31 2017, 17:16
Parents
rPH99704ed48513: Support operators in Phabricator search
Branches
Unknown
Tags
Unknown

Event Timeline

Edward Speyer <edward@fb.com> committed rPHc15d8d4d23a1: Relative date helper, for 'today' and 'yesterday' (authored by Edward Speyer <edward@fb.com>).Mar 31 2012, 07:15