Closure Library API Documentation
Go to class or file:
relativewithplurals.js
No description.
Useful links
Source Code
Git
File Location
/goog/date/relativewithplurals.js
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 »
Directory date
File Reference