Skip to content
This repository has been archived by the owner on Mar 26, 2024. It is now read-only.

WhoopInc/frozen-moment-OLD

 
 

Repository files navigation

OLD VERSION — NOT MAINTAINED

This repository contains the original, abandoned version of Frozen Moment. It works, and it's seen some light real-world use. Unfortunately, this forked version is clunky to use because it only supports mutation via a builder API. In addition, even though the locale system should work, this fork provides just a single locale (US English), and it has not been tested with other locales.

Current development is focusing on a rewrite. The current version is WhoopInc/frozen-moment. That new repository is architected as a plugin for Moment itself. As a plugin, the new version will easily maintain feature parity with upstream Moment, and users can more easily take advantage of the wider Moment ecosystem. Again, you should really check out the new Frozen Moment plugin instead of using this repository's code if at all possible.

Here is the unmodified README for this old, unmaintained version of Frozen Moment:

frozen-moment

MIT License

A lightweight javascript date library for parsing, validating, manipulating, and formatting dates.

This is a 2014 fork of Moment.js. Whereas Moment provides a mutable wrapper over the native JavaScript Date API, this project seeks to provide an immutable API for working with moments in time that can be created with a chainable builder API. We aim to maintain general feature parity with the upstream Moment API.

The docs are a little rough in appearance right now, but they should be accurate and comprehensive. If you notice anything that doesn't match the actual behavior of our code, please open an issue (or a pull request!).

Want to see this project succeed? We'd love to have you help out! Take a look at our current Issues list, or just submit a pull request that adds a feature you need. Documentation pull requests are also very welcome. Thanks!

Upgrading from moment 2.x to frozen-moment 3.0

TODO: write this

License

Moment.js is freely distributable under the terms of the MIT license.