iron-time-behavior | Vaadin

Polymer behavior that provides time-from-now string, e.g. today, yesterday, this week, earlier

[ This description is mirrored from at on 2019-05-10 ]

iron-time-behavior Bower version Travis state Published on

Published on Vaadin  Directory Stars on

Polymer hybrid behavior that provides time-from-now string, e.g. today, yesterday, this week, earlier.

The element builds on the momentjs library.

To use this element:

bower install iron-time-behavior

i18n Support

iron-time-behavior uses Moment.js, and so supports all locales that Moment.js supports. But, the component does not reference any specific locale, so when you want to use it with a locale other than en you must load the locales explicitly.

<link rel="import" href="bower_components/iron-time-behavior/iron-time-behavior.html">
<script src="bower_components/moment/min/locales.js"></script>


This software is licensed under the Apache 2 license, quoted below.

Copyright 2011-2015 Collaborne B.V. <>

Licensed under the Apache License, Version 2.0 (the "License"); you may not
use this file except in compliance with the License. You may obtain a copy of
the License at

Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
License for the specific language governing permissions and limitations under
the License.


Link to this version
ImportedReleased 05 December 2018Apache License 2.0
Framework Support
Polymer 2.0+
Also supported:
Polymer 1 (1.1.1)
Browser Compatibility
Install with
Release notes - Version 2.1.0



  • Polymer/polymer#^2.0.0