{"_id":"@abidrahim/waqt","_rev":"5-6d3ea3b354d5652ccb060f78d781c113","time":{"0.0.0":"2019-02-13T14:47:42.649Z","created":"2019-05-29T12:20:24.038Z","1.0.1":"2019-05-29T12:20:24.235Z","modified":"2022-04-04T10:59:30.710Z","1.0.2":"2019-05-29T12:32:14.072Z"},"name":"@abidrahim/waqt","dist-tags":{"latest":"1.0.2"},"versions":{"1.0.1":{"name":"@abidrahim/waqt","version":"1.0.1","description":"Parse, manipulate, retrieve and display date and time data with minimal javascript methods","main":"index.js","scripts":{"test":"echo \"Error: no test specified\" && exit 1"},"repository":{"type":"git","url":"git+https://github.com/AltCampus/Hack6-Waqt.js.git"},"tags":["moment","date-fns","date","waqt","time"],"keywords":["moment","date-fns","date","waqt","time"],"author":{"name":"waqtJS team"},"license":"ISC","bugs":{"url":"https://github.com/AltCampus/Hack6-Waqt.js/issues"},"homepage":"https://github.com/AltCampus/Hack6-Waqt.js#readme","gitHead":"ad6f2814d7b6c98ab88e42e2cd53f41d30688a57","_id":"@abidrahim/waqt@1.0.1","_nodeVersion":"10.14.2","_npmVersion":"6.8.0","dist":{"integrity":"sha512-doSbdIxPzTXleNdZpxfsAGcvCFoFQPH00gpQ4U0+l9gdjD3eMm2QDj8KFOYIk3cXDJo28w5QlDztBbOEO9dbnw==","shasum":"444194b92285a6c4936cf4bba5b9e65d32140bca","tarball":"https://registry.npmjs.org/@abidrahim/waqt/-/waqt-1.0.1.tgz","fileCount":22,"unpackedSize":9250,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJc7nkICRA9TVsSAnZWagAA+VUP/j1mTlCJsCLLb2OG2cZy\nOQV3NGpPC6gTTFpsr48NOoCru0yr7lG7LD/2GUWP92oL5/p4nupAGovUifKd\nfFB2QFLaP0Qx7sP55c7FCoYMQyGUXzOGBGq0E1WAdHqbNnMEn87yhc9xKIHz\nTiOU8fuCbWou5Gn5DZy5yWTDhS75xGksPlKpQK3MiJlNozOYdDgzqoeb/sNN\nsSw7Y5HS5iIrEx23XWfo8TA9+gJVKWRFCTQwtWyvUrBCltj6W0NeqK4UWApq\n6QTbBXFdFxKnZmTEbOUZKNyZyLZSlvHidB0+j/D263tmWdg5Vz00Eg4KbUpy\nP5M8KNv7C6HRvZVaqCFYF3PFnDRHtHDQ1SwV3Lgy/A/69vz9dPVv2MsmzBSt\nlnvRb8+k3GpM2NmM3vSDek+fq5/XKJZ0u2JO002sQVNtG2VXB2mVG017dmsC\nqOEfYW8KvFYz4lqEIFLFgFdOqZnaWzX28mRN+KRvoNMW5tdfhRIwZeWMD16H\nEyJ5/DxwbMSE928MZN5WjYB78F/94GbNaZmet7rAAdUu2pA5Bo/jVXK7odei\nNyS5eJAia9gZZR4h5sFtaEQIQYp1imu1j7v0AY6kgN/fcWrewwU+FXdVkHeG\n8/4NyQQpEXU2nnUu+17vAxpIQ7llvAwv+iEhKnvaGhVfpYjqSBq5Q3zEmMSn\n8zMy\r\n=BW0L\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIFKhGCPpvqz0YGsIyGUY7IdkzXhWSjKTEw8pRqbRWYLKAiBUNhDgAdc4sMlzg2+u9Up6dtvW6d4sFMzioZmOd6J9QQ=="}]},"maintainers":[{"name":"abidrahim","email":"abid.rahim1@gmail.com"}],"_npmUser":{"name":"abidrahim","email":"abid.rahim1@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/waqt_1.0.1_1559132424081_0.016481952768856667"},"_hasShrinkwrap":false},"1.0.2":{"name":"@abidrahim/waqt","version":"1.0.2","description":"Parse, manipulate, retrieve and display date and time data with minimal javascript methods","main":"index.js","scripts":{"test":"echo \"Error: no test specified\" && exit 1"},"repository":{"type":"git","url":"git+https://github.com/AltCampus/Hack6-Waqt.js.git"},"tags":["moment","date-fns","date","waqt","time"],"keywords":["moment","date-fns","date","waqt","time"],"author":{"name":"waqtJS team"},"license":"ISC","bugs":{"url":"https://github.com/AltCampus/Hack6-Waqt.js/issues"},"homepage":"https://github.com/AltCampus/Hack6-Waqt.js#readme","gitHead":"a9e27076d531d13907786fafcd2ebbda0b6ed12a","_id":"@abidrahim/waqt@1.0.2","_nodeVersion":"10.14.2","_npmVersion":"6.8.0","dist":{"integrity":"sha512-GyMtpZ0lCW4DP06jOS2SYbl4KkW0ZO1V1ypDdFKrHyincOrY5fpxGDbejNrQ7Wo2A2IVdAnqdLLk+5cjo4PSeQ==","shasum":"b66b79f50a47e2dd0ccae92bf02f51bd21c69f3a","tarball":"https://registry.npmjs.org/@abidrahim/waqt/-/waqt-1.0.2.tgz","fileCount":22,"unpackedSize":9250,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJc7nvOCRA9TVsSAnZWagAArgAP/RFro1+HYdHlhaBj9kyv\n2C3sLV8MqugPWcaZ4vh17QXi/Kf/UvP7u5fT4h58QMPsBBbdOSOh+Ni0d5pM\nLc0a2rpiFMZsklbCLANo2eRaobXH0LQalOC1bCN9BQhobJaezzuKboi4clSO\n3OI9fxj1ihu2YokNmDaW8uoF3IqQZ239d8iGqodiZ2uqKzO2oQlb47nCYBYq\ncN9W3YK48m4sPa2c5Llnlb8DGJJk4gCtvqUj3CCHzKqrqZ5xgeEjW21HTjE1\nvJ1LX+c9G1uffXifwlA0Rtwx0NWWqOk+GA4nUxRyyr7rBK3BBBJpbBAa8jL2\ncFeuiNt1ctfTzymUXqk7oOkM73bRowgVtv1Hx9c3udUnNeFM5XTje9zoeaUk\nySrGiRxdTzICgaqhPBTq3k1p/o5kw1mww7y6PZYhCaMvWGYjwk6nCr3u0hjq\nXDretDGbyIH3NkG/wLyeLAUKijwo4W6YCDStxrwsgABtKCO0RGCLXO2yxb6u\nXM2GRe4kqV9dyr1/gbRqFbMfLgEaHievuZlhe1/9EhwJROAL1lKqTKI4eAKR\n9vdbtlMxBLZn38j3KhkRCIgvZX3gLVFO43a/QIlL5JBGbkOrFzf22QBBCk+F\nbXrU+bFTB28MZVOGCUb45RRRps21rDAT+AKF6Fjy+7s+VYUMuYyQiZYiOSMS\nu5nz\r\n=TkOV\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDEBZTUWlN1bhihcyAMFSf/zzA7WQ3vVRdDXFOa3eskiQIgX8hFgbQLZMGJtffIU77meh+JuGiIJxpZhYChvgxB/Gg="}]},"maintainers":[{"name":"abidrahim","email":"abid.rahim1@gmail.com"}],"_npmUser":{"name":"abidrahim","email":"abid.rahim1@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/waqt_1.0.2_1559133133911_0.30194893284300983"},"_hasShrinkwrap":false}},"maintainers":[{"name":"abidrahim","email":"abid.rahim1@gmail.com"}],"description":"Parse, manipulate, retrieve and display date and time data with minimal javascript methods","homepage":"https://github.com/AltCampus/Hack6-Waqt.js#readme","keywords":["moment","date-fns","date","waqt","time"],"repository":{"type":"git","url":"git+https://github.com/AltCampus/Hack6-Waqt.js.git"},"author":{"name":"waqtJS team"},"bugs":{"url":"https://github.com/AltCampus/Hack6-Waqt.js/issues"},"license":"ISC","readme":"# Implement date-fns\n\nFunctions to implement using Date Object.\n\n## Get Date Time\n\n### now\n\nIt will give you the current datetime\nExample:\n\n```js\nnow();\n// Wed Feb 13 2019 14:30:02 GMT+0530 (India Standard Time)\n```\n\n### Day of Year\n\nGets the day of the year.\n\n```js\ngetDayOfYear(new Date());\n// 44\n```\n\n### Day of Week\n\nGets the day of the week.\n\n```js\ngetDay(new Date());\n// 7\n```\n\n### Week of Year\n\nGets the day of the week.\n\n```js\ngetWeek(new Date());\n// 3 (Wednesday)\n```\n\n### Days in Month\n\nGets the day of the week.\n\n```js\ngetDaysInMonth(new Date(2012, 1));\n// => 29\n```\n\n### Maximum of the given dates\n\nReturns the minimum (most distant future) of the given date.\n\n```js\nconst array = [\n  new Date(2017, 4, 13),\n  new Date(2018, 2, 12),\n  new Date(2016, 0, 10),\n  new Date(2016, 0, 9)\n];\nmin(array);\n// => \"2016-01-08T13:00:00.000Z\"\n```\n\n### Maximum of the given dates\n\nReturns the maximum (most distant future) of the given date.\n\n```js\nconst array = [\n  new Date(2017, 4, 13),\n  new Date(2018, 2, 12),\n  new Date(2016, 0, 10),\n  new Date(2016, 0, 9)\n];\nmax(array);\n// => \"2018-03-11T13:00:00.000Z\"\n```\n\n## Display\n\n### Format\n\nFormats date to \"MM/DD/YYYY\"\n\n```js\nformat(new Date(2014, 1, 11), \"MM/DD/YYYY\");\n//=> '02/11/2014'\n```\n\n## Date Manipulation\n\n### Add Days\n\nAdd the specified number of days to the given date.\nExample:\n\n```js\naddDays(new Date(), 7);\n//Output:  Wed Feb 20 2019 14:30:02 GMT+0530 (India Standard Time)\n```\n\n### Subtract Days\n\nSubtract the specified number of days from the given date.\nExample:\n\n```js\nsubDays(new Date(), 5);\n//Output:  Wed Feb 20 2019 14:30:02 GMT+0530 (India Standard Time)\n```\n\n### End of Time\n\nReturn the end of a unit of time for the given date.\n\nExample:\n\n```js\nendOfDay(new Date());\n// => \"2018-09-09T13:59:59.999Z\"\n```\n\n### Difference\n\nGet the unit of time between the given dates.\n\nExample:\n\n```js\ndifferenceInMilliseconds(new Date(2007, 0, 27), new Date(2007, 0, 29));\n// => -172800000\ndifferenceInDays(new Date(2007, 0, 27), new Date(2007, 0, 29));\n// => -2\n```\n\n### Is Before\n\nCheck if a date is before another date.\n\nExample:\n\n```js\nisBefore(new Date(2010, 9, 20), new Date(2010, 9, 21));\n// => true\n```\n\n### Is Same\n\nCheck if a date is the same as another date.\n\nExample:\n\n```js\nisSameDay(new Date(2010, 9, 20), new Date(2010, 9, 21));\n// => false\nisSameDay(new Date(2010, 9, 20), new Date(2010, 9, 20));\n// => true\nisSameMonth(new Date(2010, 9, 20), new Date(2010, 9, 21));\n// => true\n```\n\n### Is After\n\nCheck if a date is after another date.\n\nExample:\n\n```js\nisAfter(new Date(2010, 9, 20), new Date(2010, 9, 19));\n// => true\n```\n\n### Is Leap Year\n\nCheck if a year is a leap year.\n\nExample:\n\n```js\nisLeapYear(new Date(2000, 0, 1));\n// => true\n```\n\n### Is a Date\n\nCheck if a variable is a native js Date object.\n\nExample:\n\n```js\nisDate(new Date());\n// => true\n```\n","readmeFilename":"README.md"}