{"_id":"@camptocamp/php-date-formatter","_rev":"6-03bdde13b3526b9dcef12b35ac417533","name":"@camptocamp/php-date-formatter","dist-tags":{"latest":"1.3.4"},"versions":{"1.3.4":{"name":"@camptocamp/php-date-formatter","version":"1.3.4","description":"A Javascript datetime formatting and manipulation library using PHP date-time formats.","main":"js/php-date-formatter.js","directories":{"example":"examples"},"repository":{"type":"git","url":"git+https://github.com/kartik-v/php-date-formatter.git"},"author":{"name":"Kartik Visweswaran","email":"kartikv2@gmail.com"},"license":"BSD-3-Clause","bugs":{"url":"https://github.com/kartik-v/php-date-formatter/issues"},"homepage":"https://github.com/kartik-v/php-date-formatter","dependencies":{"eslint":"^5.0.1"},"gitHead":"9d765aceb635a5480f1c117dbc5229dfb77a4cae","_id":"@camptocamp/php-date-formatter@1.3.4","_npmVersion":"5.6.0","_nodeVersion":"8.11.3","_npmUser":{"name":"sbrunner","email":"stephane.brunner@camptocamp.com"},"dist":{"integrity":"sha512-MSBnuNAsNLAMHkbg1JP/pcGmePBppYRbeFgRTszoczDU6ZWNfd+H+f8JOtmWpbhR9jQFROLNDDxCVfQoBSUZ2g==","shasum":"88c6b53010d9ac33a8f2c95e0914a12e7ece277d","tarball":"https://registry.npmjs.org/@camptocamp/php-date-formatter/-/php-date-formatter-1.3.4.tgz","fileCount":13,"unpackedSize":56419,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJbOiwDCRA9TVsSAnZWagAAWJcP/j8U2fGK9xy3oEntT0hM\nFHL+NmNUfkzXg4mdQ97hJ7b9pK9WTPbnX0LVObqWQpaGeiMDkw3O7GKzGpb4\n6OuML1ZYvL8XrJF2b9rbU1GD/BVVmQK+uxmNwYWsicVRPY6ogxf/VVRa1499\n0PmJ4HLxJmAOHvJVrIAgEYqRAJ9Q9lJj0RWFvs16pfYnGHyGktdqbAvVzkTg\n5qUyKg3v7jg6BtSXuS2PvJEA3S58nBB4qMym9j3V2crNrj5y0I6MSveyqmnL\nntcZck4x5vgjlhiGBxARkvdBTIAaOKFIYUF4ppNuqx5fI2TMk7s/5orzMJGi\nnZewby8VHxLo97weGBgMGdwTG8Yk9j20lrqojy4VbSMFlcu7ou6BEjYHKvMZ\n5teVk1Cih8cYStuj+VT3dGXanWtF80CmY3xf0OUs8TWjNCgtEp/xSnjp4M3h\nG51EB9eUXnqnjNeB/HdmLtD7fCtHabNw6jL1uM0SNFpmi92nyZKG/+UHFEWS\nNIFhqMyqcNKhHt3L1uPWQc2dFxX2/V5gh8MOiMS51mI0n1lT8/wW+sOIS04r\njjbqUGeldDV/y6lW8GuxQUsQcgKGzQrbNIm805zndI797nZE8aXJnpZLMACN\naEZcRFgnNeF0DMBe/xf5iBn4My3cOWryTfuUP/GhOmuEAxKQoXBj/RkpeDEY\nQGvP\r\n=mzo1\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQClxe+BzsRa7hCyVhB4ZTEMIrF0gPsgJwhtvkQkCNSRDAIgSpVDwWlusGxGDaDQulXn8YWV/w/G+uHNJ/cjbxXyKwo="}]},"maintainers":[{"name":"fredj","email":"frederic.junod@gmail.com"},{"name":"gberaudo","email":"guillaume.beraudo@camptocamp.com"},{"name":"romanzoller","email":"roman.zoller@camptocamp.com"},{"name":"sbrunner","email":"stephane.brunner@camptocamp.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/php-date-formatter_1.3.4_1530539011522_0.07535517088405896"},"_hasShrinkwrap":false}},"time":{"created":"2018-07-02T13:43:31.481Z","1.3.4":"2018-07-02T13:43:31.616Z","modified":"2024-04-30T12:53:40.419Z"},"maintainers":[{"email":"florent.gravin@camptocamp.com","name":"fgravin"},{"email":"camille.moinier@camptocamp.com","name":"cmoinier"},{"email":"frederic.junod@gmail.com","name":"fredj"},{"email":"guillaume.beraudo@gmail.com","name":"gberaudo"},{"email":"stephane.brunner@camptocamp.com","name":"sbrunner"},{"email":"tobias.kohr@camptocamp.com","name":"tkohr"},{"email":"olivier.guyot@camptocamp.com","name":"jahow"}],"description":"A Javascript datetime formatting and manipulation library using PHP date-time formats.","homepage":"https://github.com/kartik-v/php-date-formatter","repository":{"type":"git","url":"git+https://github.com/kartik-v/php-date-formatter.git"},"author":{"name":"Kartik Visweswaran","email":"kartikv2@gmail.com"},"bugs":{"url":"https://github.com/kartik-v/php-date-formatter/issues"},"license":"BSD-3-Clause","readme":"php-date-formatter\n==================\n\n[![Bower version](https://badge.fury.io/bo/php-date-formatter.svg)](http://badge.fury.io/bo/php-date-formatter)\n[![Stable Version](https://poser.pugx.org/kartik-v/php-date-formatter/v/stable)](https://packagist.org/packages/kartik-v/php-date-formatter)\n[![Unstable Version](https://poser.pugx.org/kartik-v/php-date-formatter/v/unstable)](https://packagist.org/packages/kartik-v/php-date-formatter)\n[![License](https://poser.pugx.org/kartik-v/php-date-formatter/license)](https://packagist.org/packages/kartik-v/php-date-formatter)\n[![Packagist Downloads](https://poser.pugx.org/kartik-v/php-date-formatter/downloads)](https://packagist.org/packages/kartik-v/php-date-formatter)\n[![Monthly Downloads](https://poser.pugx.org/kartik-v/php-date-formatter/d/monthly)](https://packagist.org/packages/kartik-v/php-date-formatter)\n\nA Javascript datetime library that allows you to manipulate date/times using PHP date-time formats in javascript. This library was built with an intention \nto read and write date/timestamps to the database easily when working with PHP server code. Use cases for this library would involve reading and saving a \ntimestamp to database in one format, but displaying it on client or html forms in another format. Maintaining a consistent PHP Date time format for both \nserver side and client side validation should help in building extensible applications with various PHP frameworks easily.\n\nThis library is a standalone javascript library and does not depend on other libraries or plugins like jQuery.\n\nThe latest release of the library is v1.3.4. Check the [CHANGE LOG](https://github.com/kartik-v/php-date-formatter/blob/master/CHANGE.md) for details.\n\n## Features\n\n- Parse date/time strings or a Date object, and convert it into Javascript Date Object by passing any of the [PHP DateTime formats](http://php.net/manual/en/function.date.php).\n- Automatically guess date/time strings, even if it does not exactly match the format, and convert it into Javascript Date Object.\n- Read date/time strings or a Date object, and format it as per a [PHP DateTime format](http://php.net/manual/en/function.date.php).\n- With release v1.3.2 the library has been converted to use pure javacript code without dependency on jQuery or other third party JS library.\n\n## Documentation and Demo\n\nView the [library documentation](http://plugins.krajee.com/php-date-formatter) and\n[library demos](http://plugins.krajee.com/php-date-formatter/demo) at Krajee JQuery plugins.\n\n## Installation\n\n### Using Bower\nYou can use the `bower` package manager to install. Run:\n\n    bower install php-date-formatter\n\n### Using Composer\nYou can use the `composer` package manager to install. Either run:\n\n    $ php composer.phar require kartik-v/php-date-formatter \"@dev\"\n\nor add:\n\n    \"kartik-v/php-date-formatter\": \"@dev\"\n\nto your composer.json file\n\n### Manual Install\n\nYou can also manually install the plugin easily to your project. Just download the source\n[ZIP](https://github.com/kartik-v/php-date-formatter/zipball/master) or\n[TAR ball](https://github.com/kartik-v/php-date-formatter/tarball/master) and extract the\nplugin assets (css and js folders) into your project.\n\n## Usage\n\n**Step 1** Load the following assets in your header.\n\n```html\n<script src=\"path/to/js/php-date-formatter.min.js\" type=\"text/javascript\"></script>\n```\n\n**Step 2** You can now access the library using the `DateFormatter` object. For example, you can convert any date string to javascript date object for a specific PHP date format.\n\n```js\nvar fmt = new DateFormatter();\nvar date1 = fmt.parseDate('23-Sep-2013 09:24:12', 'd-M-Y H:i:s');\nvar date2 = fmt.formatDate(date1, 'd-F-Y h:i:s A');\n```\n\n## License\n\n**php-date-formatter** is released under the BSD 3-Clause License. See the bundled `LICENSE.md` for details.","readmeFilename":"README.md"}