{"_id":"chrono","_rev":"20-e17eb7b735df4cb0854a5698e0a1fd18","name":"chrono","description":"Format dates in JavaScript","dist-tags":{"latest":"1.0.5"},"versions":{"1.0.0":{"name":"chrono","author":{"name":"Konstantin Käfer"},"description":"Format dates in JavaScript","version":"1.0.0","repository":{"type":"git","url":"git://github.com/kkaefer/chrono.js.git"},"bugs":{"url":"https://github.com/kkaefer/chrono.js/issues"},"main":"index","_id":"chrono@1.0.0","engines":{"node":"*"},"_engineSupported":true,"_npmVersion":"1.0.1rc4","_nodeVersion":"v0.4.3","_defaultsLoaded":true,"dist":{"shasum":"888e6b523e68fcb207cd98b5783078dd579c791e","tarball":"https://registry.npmjs.org/chrono/-/chrono-1.0.0.tgz","integrity":"sha512-Gux/suNkg1uqBfknJYecHkgyisAcFi0gY1Z9ON04O7WYtz/wWCPV4eHvcDd0IshIueSxltSqvEvgplXsHc34Dw==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCrmPemTtoICZNwpMlPWtREzNRKF8eibzJRWoIn0Xhv5wIgFpFK2082cYDSNokeY/hlhbf5VY7GdFN7hd0TTnKOKh8="}]}},"1.0.1":{"name":"chrono","author":{"name":"Konstantin Käfer"},"description":"Format dates in JavaScript","version":"1.0.1","repository":{"type":"git","url":"git://github.com/kkaefer/chrono.js.git"},"bugs":{"url":"https://github.com/kkaefer/chrono.js/issues"},"main":"index","dependencies":{},"devDependencies":{},"_id":"chrono@1.0.1","engines":{"node":"*"},"_engineSupported":true,"_npmVersion":"1.0.6","_nodeVersion":"v0.4.6","_defaultsLoaded":true,"dist":{"shasum":"5266cf191b8092990bf63de62fbcb373d069494e","tarball":"https://registry.npmjs.org/chrono/-/chrono-1.0.1.tgz","integrity":"sha512-AdZ51wVLlgevUqNH7KEPBlzAUJHM4gOOeOyeC4oLfb7DjpB0SI2EQ9PpSs0MMT07Tmgl3mU6kW+H0CiZ5OUAfg==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDwHdJDZpNHf1pSKXjn4EHSbyZ7ofAzi+j4tRGKjIiguQIhAOy1s1C/yIARK83CI/J3PmX/hQk30l/hG+W8dFJQ8kEp"}]},"scripts":{}},"1.0.2":{"name":"chrono","author":{"name":"Konstantin Käfer"},"description":"Format dates in JavaScript","version":"1.0.2","repository":{"type":"git","url":"git://github.com/kkaefer/chrono.js.git"},"bugs":{"url":"https://github.com/kkaefer/chrono.js/issues"},"main":"index","_npmJsonOpts":{"file":"/Users/kkaefer/.npm/chrono/1.0.2/package/package.json","wscript":false,"contributors":false,"serverjs":false},"_id":"chrono@1.0.2","dependencies":{},"devDependencies":{},"engines":{"node":"*"},"_engineSupported":true,"_npmVersion":"1.0.23","_nodeVersion":"v0.4.12","_defaultsLoaded":true,"dist":{"shasum":"5e7c59cb33ca7bb960019eac1829c087881f460c","tarball":"https://registry.npmjs.org/chrono/-/chrono-1.0.2.tgz","integrity":"sha512-m8VpcCXjZ0Ih6QgTHt6QTTUyTN4HvdSiyvpOwG15OWdaI1NWGiV4xkqFGfLqoSSHkNVvMfjPyIUIsWY08o2Heg==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIHHy+ygXQeARbg6sY43XS4n6N90gzYPXBjvtlfAlF/5HAiA2y/SEPned7G26JBKrv50LnBZQl/d+PQ9mrAdMA6jv2Q=="}]},"scripts":{},"maintainers":[{"name":"kkaefer","email":"kkaefer@gmail.com"},{"name":"yhahn","email":"young@developmentseed.org"},{"name":"tmcw","email":"macwright@gmail.com"},{"name":"willwhite","email":"will@developmentseed.org"},{"name":"springmeyer","email":"dane@dbsgeo.com"}]},"1.0.4":{"name":"chrono","author":{"name":"Konstantin Käfer"},"description":"Format dates in JavaScript","version":"1.0.4","repository":{"type":"git","url":"git://github.com/kkaefer/chrono.js.git"},"bugs":{"url":"https://github.com/kkaefer/chrono.js/issues"},"main":"index","_npmUser":{"name":"kkaefer","email":"kkaefer@gmail.com"},"_id":"chrono@1.0.4","dependencies":{},"devDependencies":{},"optionalDependencies":{},"engines":{"node":"*"},"_engineSupported":true,"_npmVersion":"1.1.21","_nodeVersion":"v0.6.18","_defaultsLoaded":true,"dist":{"shasum":"e718e280958ebe89ddcad18086e893cf97721f8a","tarball":"https://registry.npmjs.org/chrono/-/chrono-1.0.4.tgz","integrity":"sha512-Pd9ZmOvhivUON6WXwdZkbwT87JgRnacdUpRJVNJlNFHkulfNHJwouz4gAr+jVE8hvF0GROlWN7S+8ManO6l9yg==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDhrWL+toe9RmBh351Oe9AEhwQQ8r8ipiQKCSRbRNsVAgIhAPzJVvxVNUPptzoACZDVAiBB0+H6sZV5rtEtLX8hsVrE"}]},"maintainers":[{"name":"kkaefer","email":"kkaefer@gmail.com"},{"name":"yhahn","email":"young@developmentseed.org"},{"name":"tmcw","email":"macwright@gmail.com"},{"name":"willwhite","email":"will@developmentseed.org"},{"name":"springmeyer","email":"dane@dbsgeo.com"}]},"1.0.5":{"name":"chrono","author":{"name":"Konstantin Käfer"},"description":"Format dates in JavaScript","version":"1.0.5","devDependencies":{"mocha":"~1.14"},"repository":{"type":"git","url":"git://github.com/kkaefer/chrono.js.git"},"bugs":{"url":"https://github.com/kkaefer/chrono.js/issues"},"scripts":{"test":"mocha -R spec -u exports"},"main":"index","_id":"chrono@1.0.5","dist":{"shasum":"3faed1b0671661bf9f573e29a037e4aa4773ff16","tarball":"https://registry.npmjs.org/chrono/-/chrono-1.0.5.tgz","integrity":"sha512-gjmpLxZa8iRaQXpV/sEV3ZkDuvwg0FqM1YrhaxdybN/DQJyfs1fG6UkJXkkOKLk/Hb712hsVV5EGR8f8A5sBdA==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDbYXmgxuUVUta0bkT41uICS/JX9Auoe6D7CQsVMfbpbQIgUnxyJLt7dlSFjSrUVIVLZw2vtXvFK9peeE4viTtw5dc="}]},"_from":".","_npmVersion":"1.3.11","_npmUser":{"name":"kkaefer","email":"kkaefer@gmail.com"},"maintainers":[{"name":"kkaefer","email":"kkaefer@gmail.com"},{"name":"yhahn","email":"young@developmentseed.org"},{"name":"tmcw","email":"macwright@gmail.com"},{"name":"willwhite","email":"will@developmentseed.org"},{"name":"springmeyer","email":"dane@dbsgeo.com"}]}},"maintainers":[{"email":"mail@kkaefer.com","name":"kkaefer"},{"email":"young@mapbox.com","name":"yhahn"},{"email":"tom@macwright.org","name":"tmcw"},{"email":"will@mapbox.com","name":"willwhite"},{"email":"dane@mapbox.com","name":"springmeyer"}],"time":{"modified":"2022-06-13T06:01:04.299Z","created":"2011-04-08T18:14:12.435Z","1.0.0":"2011-04-08T18:14:12.597Z","1.0.1":"2011-05-09T21:55:38.663Z","1.0.2":"2011-10-03T17:18:36.114Z","1.0.4":"2012-05-31T10:17:50.863Z","1.0.5":"2014-01-14T09:46:18.542Z"},"author":{"name":"Konstantin Käfer"},"repository":{"type":"git","url":"git://github.com/kkaefer/chrono.js.git"},"readme":"# chrono.js [![Build Status](https://travis-ci.org/kkaefer/chrono.js.png)](https://travis-ci.org/kkaefer/chrono.js)\n\n### Date.prototype.**format(format, [timezone])**\n\nAllows formatting of time in a `strftime` style, but with syntax taken from PHP's [`date`](http://php.net/date) function. It implements pretty much all of the tokens from PHP's [`date`](http://php.net/date) function, except for B (Swatch internet time) and e (Content/City timezone identifier). You can escape characters with a `\\` (remember to encode the `\\` in a string as well). All other characters will be printed as they appear in the format string.\n\nThe optional `timezone` parameter specifies the time zone to be used. The values allowed are the same as for `Date.prototype.setTimezone()`. If no value is specified, the Date object's internal time zone will be used.\n\nThe function returns a string with the tokens replaced with the Date object's information.\n\nExample: `new Date().format('d.m.Y H:i:s', 'CET');` returns `19.10.2010 15:48:20` (in CET, without regard to DST).\n\n### Date.prototype.**isLeapYear()**\n\nReturns true if the Date object's UTC date is in a leap year.\n\n### Date.prototype.**getUTCISOWeek()**\n\nReturns the ISO-8601 week number of the year, using the Date object's UTC date.\n\n### Date.prototype.**getUTCISOFullYear()**\n\nReturns the ISO-8601 year, using the Date object's UTC date. This is generally the same as the Gregorian year, but may sometimes deviate at the beginning or end of the year. It is commonly used in conjunction with the ISO-8601 week number.\n\n### Date.prototype.**getUTCDaysOfMonth()**\n\nReturns the number of days in the Date object's UTC date's month.\n\n### Date.prototype.**getUTCDayOfYear()**\n\nReturns the day of the year of the Date object's UTC date.\n\n### Date.prototype.**getTimezone()**\n\nReturns the deviation from UTC in minutes (using JavaScript's inverse offset). If no explicit time zone has been specified, it returns the system clock's time zone offset.\n\n### Date.prototype.**getTimezoneName()**\n\nReturns the time zone acronym of the Date object's timezone.\n\n### Date.prototype.**setTimezone(val)**\n\nSets the Date object's timezone. Numbers are interpreted as deviation in minutes from UTC, with positive values west of UTC and negative values east thereof (this is JavaScript's way of specifying time zone offset and is the exact opposite of how timezone offsets normally work). Alternatively, you can specify a offset in RFC2822 notation, for example `'+0200'` for UTC + 2 hours. Common time zone shortcuts like `'PST'` also work.\n\n\n# TESTS\n\nTests can be run with `make test` after installing [Expresso](http://github.com/visionmedia/expresso). `make test-cov` reports test coverage.\n","readmeFilename":"README.markdown","bugs":{"url":"https://github.com/kkaefer/chrono.js/issues"}}