<commit_before># Ember-moment
[![npm Version][npm-badge]][npm]
[![Build Status][travis-badge]][travis]

[moment.js](http://momentjs.com) template helpers and computed property macros for Ember

## Requirements
* Ember >= 1.10.0 (2.0-beta and canary also supported)
  * If you need support for < Ember 1.10 please use ember-moment 1.x-2.x

## Installing

* ember-cli < 0.2.3 `ember install:addon ember-moment`
* ember-cli >= 0.2.3 `ember install ember-moment`

## Upgrading

It's advisable to run `ember g ember-moment` between upgrades as dependencies may have been added, removed, or upgraded between releases.  Please try this, along with clearing `node_modules` and `bower_components` before reporting issues after upgrading.

## Usage

```hbs
{{moment-format date}}
{{moment-from-now date}}
{{moment-to-now date}}
{{moment-duration ms}}
```

### Advanced Usage

```hbs
{{moment-format date outputFormat inputFormat}}
{{moment-from-now date}}
{{moment-to-now date}}
{{moment-duration number units}}
```

Recomputes the time ago every 1-second.  This is useful for "live" updating as time elapses.

*NOTE: This feature is only supported in Ember >= 1.13.0*

```hbs
{{moment-from-now date interval=1000}}
```

## ES6 Moment<commit_msg>Enhance Live Updating section for easier comprehension<commit_after># Ember-moment
[![npm Version][npm-badge]][npm]
[![Build Status][travis-badge]][travis]

[moment.js](http://momentjs.com) template helpers and computed property macros for Ember

## Requirements
* Ember >= 1.10.0 (2.0-beta and canary also supported)
  * If you need support for < Ember 1.10 please use ember-moment 1.x-2.x

## Installing

* ember-cli < 0.2.3 `ember install:addon ember-moment`
* ember-cli >= 0.2.3 `ember install ember-moment`

## Upgrading

It's advisable to run `ember g ember-moment` between upgrades as dependencies may have been added, removed, or upgraded between releases.  Please try this, along with clearing `node_modules` and `bower_components` before reporting issues after upgrading.

## Usage

```hbs
{{moment-format date}}
{{moment-from-now date}}
{{moment-to-now date}}
{{moment-duration ms}}
```

### Advanced Usage

```hbs
{{moment-format date outputFormat inputFormat}}
{{moment-from-now date}}
{{moment-to-now date}}
{{moment-duration number units}}
```

### Live Updating of Displayed Time

```hbs
{{moment-from-now date interval=1000}} // interval is in ms
```

Recomputes the time ago every 1-second (1000 milliseconds).  This is useful for "live" updating as time elapses.

*NOTE: This feature is only supported in Ember >= 1.13.0*


## ES6 Moment
{'fraction_non_alphanumeric': 0.13773148148148148, 'fraction_numerical': 0.022376543209876542, 'mean_word_length': 4.711453744493392, 'pattern_counts': {'":': 0, '<': 7, '<?xml version=': 0, '>': 9, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '273111', 'n_tokens_mistral': 898, 'n_tokens_neox': 827, 'n_words': 284}