https://github.com/captaincodeman/time-display
Time display and time-diff (timeago) elements for Polymer
https://github.com/captaincodeman/time-display
datetime polymer timeago webcomponents
Last synced: about 1 month ago
JSON representation
Time display and time-diff (timeago) elements for Polymer
- Host: GitHub
- URL: https://github.com/captaincodeman/time-display
- Owner: CaptainCodeman
- Created: 2016-08-25T15:23:07.000Z (almost 9 years ago)
- Default Branch: master
- Last Pushed: 2018-09-19T18:27:50.000Z (over 6 years ago)
- Last Synced: 2025-04-12T06:35:18.353Z (about 2 months ago)
- Topics: datetime, polymer, timeago, webcomponents
- Language: HTML
- Homepage: http://captaincodeman.github.io/time-display/
- Size: 2.45 MB
- Stars: 11
- Watchers: 3
- Forks: 2
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
[](https://vaadin.com/directory/component/CaptainCodemantime-display)
[](https://vaadin.com/directory/component/CaptainCodemantime-display)_[Demo and API docs](http://captaincodeman.github.io/time-display/)_
# time-display
A set of elements for dealing with time in Polymer
`` is an element to display time in human readable format using [fecha](https://github.com/taylorhakes/fecha)
`` is an element to display relative time in human readable format (i.e. "timeago")
For both elements, the datetime should be provided as an ISO 8601 formatted string (UTC) or
'now' to use the current system datetime. Each user will see the time difference and display
based on their own local time.Examples:
```
```
Displays: 'Tuesday, August 23rd, 2016' (in Mountain-Time timezone)```
```
Displays: '5 minutes ago' (after 5 minutes) and updates as time goes on
```
```
Displays: '2 days ago' (when this was authored)