https://github.com/dundalek/cljs-date-format-tool
A simple tool that helps creating date format strings
https://github.com/dundalek/cljs-date-format-tool
Last synced: 3 months ago
JSON representation
A simple tool that helps creating date format strings
- Host: GitHub
- URL: https://github.com/dundalek/cljs-date-format-tool
- Owner: dundalek
- Created: 2017-04-09T19:17:19.000Z (about 8 years ago)
- Default Branch: master
- Last Pushed: 2020-02-07T19:46:03.000Z (over 5 years ago)
- Last Synced: 2025-01-19T13:32:41.027Z (5 months ago)
- Language: Clojure
- Homepage: https://dundalek.com/date-format-tool/
- Size: 32.2 KB
- Stars: 1
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Date Format Tool
This tool lets you create date formatting strings for various systems using a natural example instead of looking up placeholder characters in a documentation. These formats are supported:
- [Moment.js](http://momentjs.com/docs/#/displaying/)
- [Google Closure Library](https://google.github.io/closure-library/api/goog.i18n.DateTimeFormat.html)
- [Unix date](https://linux.die.net/man/1/date)It is written in ClojureScript using [re-frame](https://github.com/Day8/re-frame).
## Development Mode
### Run application:
```
lein clean
lein figwheel dev
```Figwheel will automatically push cljs changes to the browser.
Wait a bit, then browse to [http://localhost:3449](http://localhost:3449).
### Run tests:
```
lein clean
lein doo phantom test once
```The above command assumes that you have [phantomjs](https://www.npmjs.com/package/phantomjs) installed. However, please note that [doo](https://github.com/bensu/doo) can be configured to run cljs.test in many other JS environments (chrome, ie, safari, opera, slimer, node, rhino, or nashorn).
## Production Build
To compile clojurescript to javascript:
```
lein clean
lein cljsbuild once min
```