# @advanced-rest-client/date-time

> An element to display formatted date and time

Latest version **3.0.3** (published 2021-10-19) · Apache-2.0 license · 0 weekly downloads

## Install

```sh
npm install @advanced-rest-client/date-time
pnpm add @advanced-rest-client/date-time
yarn add @advanced-rest-client/date-time
bun add @advanced-rest-client/date-time
```

## Health

**Score 15/100 (F)** — status: abandoned.

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 3.0.3 |
| Published | 2021-10-19 |
| First published | 2019-02-27 |
| Weekly downloads | 0 |
| License | Apache-2.0 |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 0 |
| Unpacked size | 48.2 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Maintainers | jarrodek, twoplustwoone, lbauret, carowright |
| Keywords | web-components, date-time, label |

## Links

- npm: https://www.npmjs.com/package/@advanced-rest-client/date-time
- Repository: https://github.com/advanced-rest-client/date-time
- Homepage: https://github.com/advanced-rest-client/date-time#readme
- Issues: https://github.com/advanced-rest-client/date-time/issues
- npm.io page: https://npm.io/package/@advanced-rest-client/date-time

## Alternatives

- [@js-joda/timezone](https://npm.io/package/@js-joda/timezone.md) — 383.4K weekly downloads
- [chartjs-adapter-moment](https://npm.io/package/chartjs-adapter-moment.md) — 210.8K weekly downloads
- [strftime](https://npm.io/package/strftime.md) — 171.2K weekly downloads
- [vue-flatpickr-component](https://npm.io/package/vue-flatpickr-component.md) — 115.8K weekly downloads
- [timepicker](https://npm.io/package/timepicker.md) — 51.0K weekly downloads

## Recent versions

- 3.0.3 (latest) — 2021-10-19
- 3.0.2 — 2019-08-31
- 3.0.1 — 2019-07-19
- 3.0.0 — 2019-06-11
- 3.0.0-preview.1 — 2019-02-27

## README

# DEPRECATED

Use the `@anypoint-web-components/awc` module instead.

-----

An element to render data and/or time formatted for user locale.

```html
<date-time date="2010-12-10T11:50:45Z" year="numeric" month="narrow" day="numeric"></date-time>
```

### API components

This components is a part of [API components ecosystem](https://elements.advancedrestclient.com/)

## Usage

### Installation
```
npm install --save @advanced-rest-client/date-time
```

### In an html file

```html
<html>
  <head>
    <script type="module">
      import '@advanced-rest-client/date-time/date-time.js';
    </script>
  </head>
  <body>
    <date-time date="2010-12-10T11:50:45Z" year="numeric" month="long" day="numeric" hour="2-digit" minute="2-digit" second="2-digit"></date-time>
  </body>
</html>
```

### In a Polymer 3 element

```js
import { LitElement, html } from 'lit-element';
import '@advanced-rest-client/date-time/date-time.js';

class SampleElement extends LitElement {
  render() {
    return html`
    <date-time date="2010-12-10T11:50:45Z" year="numeric" month="long" day="numeric" hour="2-digit" minute="2-digit" second="2-digit"></date-time>
    `;
  }
}
customElements.define('sample-element', SampleElement);
```

### Installation

```sh
git clone https://github.com/advanced-rest-client/date-time
cd date-time
npm install
```

### Running the demo locally

```sh
npm start
```

### Running the tests
```sh
npm test
```

---
_Source: https://npm.io/package/@advanced-rest-client/date-time · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
