UNPKG

moment-jdateformatparser

Version:

Translates the `java.text.SimpleDateFormat` date format to the `moment.js` date format.

48 lines (47 loc) 1.95 kB
{ "name": "moment-jdateformatparser", "version": "1.2.1", "description": "Translates the `java.text.SimpleDateFormat` date format to the `moment.js` date format.", "homepage": "https://github.com/MadMG/moment-jdateformatparser", "scripts": { "test": "grunt qunit" }, "authors": [ "Martin Groller <madmg82@gmail.com>", "Heinz Romirer <h.romirer@gmail.com>" ], "keywords": [ "moment", "java", "date", "format", "java.text.DateFormat", "time", "parse" ], "main": "moment-jdateformatparser", "engines": {}, "repository": { "type": "git", "url": "https://github.com/MadMG/moment-jdateformatparser" }, "bugs": { "url": "https://github.com/MadMG/moment-jdateformatparser/issues" }, "licenses": [ { "type": "MIT" } ], "devDependencies": { "grunt": "~0.4.2", "grunt-contrib-jshint": "~0.7.1", "grunt-contrib-qunit": "~0.3.0", "grunt-contrib-watch": "~0.5.3", "grunt-contrib-uglify": "~0.2.5" }, "readme": "#moment-jdateformatparser\r\n\r\n\r\nThis `moment.js` plugin translates the `java.text.SimpleDateFormat` date format to the `moment.js` date format.\r\n\r\nWe took the structure graciously from <https://github.com/niwibe/moment-tokens> (thanks a lot!).\r\n\r\nUsage\r\n=====\r\n* `formatWithJDF`: Formats the moment with a java date format.\r\n > e.g.: `moment(\"2013-12-24 14:30\").formatWithJDF(\"dd.MM.yyyy\")` will return `24.12.2013`\r\n\r\n* `toJDFString`: Translates the momentjs format to a java date format.\r\n > e.g.: `moment().toJDFString(\"DD.MM.YYYY\")` will return `dd.MM.yyyy`\r\n\r\nLicense\r\n=======\r\nmoment-jdateparser is freely distributable under the terms of the MIT license.\r\n\r\nCopyright (c) 2013 Heinz Romirer, Martin Groller\r\n", "readmeFilename": "README.md", "_id": "moment-jdateformatparser@0.0.1", "_from": "moment-jdateformatparser@" }