jlengrand / fuzzy-date

A simple web-component that displays dates in a way understood by humans

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

<fuzzy-date>

Published on webcomponents.orgTravis state

A simple element that shows dates in a format understood by humans

Demo

<fuzzy-date date="Wed Mar 14 2018 08:21:25 GMT+0100 (CET)"></fuzzy-date>

Usage

To use, simply add the fuzzy-date dependency to your project and add a <fuzzy-date>element with a date attribute in the format given my javascript's Date().toString();

Install the Polymer-CLI

First, make sure you have the Polymer CLI installed. Then run polymer serve to serve your element locally.

Viewing Your Element

$ polymer serve

Running Tests

$ polymer test

Your application is already set up to be tested via web-component-tester. Run polymer test to run your application's test suite locally.

License

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

Copyright 2018 Julien Lengrand-Lambert <http://github.com/jlengrand/>

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

    http://www.apache.org/licenses/LICENSE-2.0

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.

About

A simple web-component that displays dates in a way understood by humans


Languages

Language:HTML 100.0%