Closure Library API Documentation
Go to class or file:
date.relativeWithPlurals
Classes
Public
Protected
Private
Global Functions
goog.date.relativeWithPlurals.
formatTimeDelta_
(
delta
,
future
,
unit
)
⇒
string
Gets a localized relative date string for a given delta and unit.
Arguments:
delta
:
number
Number of minutes/hours/days.
future
:
boolean
Whether the delta is in the future.
unit
:
goog.date.relative.Unit
The units the delta is in.
Returns:
string
The message.
code »
Package date
Package Reference