{"_id":"small-date","_rev":"5-e2deba628b5435d6ff6d599d6411d734","name":"small-date","dist-tags":{"latest":"2.0.1"},"versions":{"1.0.0":{"name":"small-date","version":"1.0.0","keywords":["date","formatting","date-fns","datetime","format"],"author":{"name":"Robin Weser","email":"contact@weser.io"},"license":"MIT","_id":"small-date@1.0.0","maintainers":[{"name":"rofrischmann","email":"robin@weser.io"}],"homepage":"https://github.com/robinweser/small-date","bugs":{"url":"https://github.com/robinweser/small-date/issues"},"dist":{"shasum":"32edcab969983a3d9c77cc812f746719e4ca2951","tarball":"https://registry.npmjs.org/small-date/-/small-date-1.0.0.tgz","fileCount":7,"integrity":"sha512-6TCCFEm5zqvwp+kuOKdNRwnAX7j8NBe5MTE0bZrh85cULM8dtxZNCa/8dwMYTM6vmU+NR9XKLxgvnuQwmr9VOw==","signatures":[{"sig":"MEUCIQDiLgIfl5N3i7XMrd59FAM0md3RrNQIMp41DtqqBCmWygIgGqh+H93MzT7pknJQVIf3Z5mD/QuNj0SwoTZJJxa2FKA=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":15653},"main":"lib/index.js","module":"es/index.js","gitHead":"7342253884f62b36fd9ef03fe4e40480e299abd0","scripts":{"test":"cross-env BABEL_ENV=commonjs jest","build":"yarn build:es && yarn build:lib","clean":"rimraf lib es coverage","release":"yarn clean && yarn test && yarn build && npm publish","build:es":"babel src --out-dir es --ignore \"src/__tests__\"","coverage":"yarn test --coverage","build:lib":"cross-env BABEL_ENV=commonjs babel src --out-dir lib --ignore \"src/__tests__\""},"_npmUser":{"name":"rofrischmann","email":"robin@weser.io"},"repository":{"url":"git+https://github.com/robinweser/small-date.git","type":"git"},"_npmVersion":"7.15.1","description":"Tiny (0.8kb), localised date formatting library","directories":{},"sideEffects":false,"_nodeVersion":"14.16.0","publishConfig":{"access":"public"},"_hasShrinkwrap":false,"devDependencies":{"jest":"^27.2.4","rimraf":"^3.0.2","prettier":"^2.4.1","cross-env":"^7.0.3","@babel/cli":"^7.2.0","babel-core":"7.0.0-bridge.0","babel-jest":"^23.6.0","@babel/core":"^7.2.2","@babel/preset-env":"^7.2.0","babel-plugin-transform-es2015-modules-commonjs":"^6.24.1"},"_npmOperationalInternal":{"tmp":"tmp/small-date_1.0.0_1633438468475_0.6737145255783616","host":"s3://npm-registry-packages"}},"1.0.1":{"name":"small-date","version":"1.0.1","keywords":["date","formatting","date-fns","datetime","format"],"author":{"name":"Robin Weser","email":"contact@weser.io"},"license":"MIT","_id":"small-date@1.0.1","maintainers":[{"name":"rofrischmann","email":"robin@weser.io"}],"homepage":"https://github.com/robinweser/small-date","bugs":{"url":"https://github.com/robinweser/small-date/issues"},"dist":{"shasum":"8bcc6fc017d328764a70c8c455913cf2e1ac9ed4","tarball":"https://registry.npmjs.org/small-date/-/small-date-1.0.1.tgz","fileCount":3,"integrity":"sha512-I4e/+jld+T1GHTXCMe1/h8t1KygN8HB1vFkXglVX8X8zmsWunq3gMVacn1pWf2bzrFb0pB+iTgWs/fro4pMP9w==","signatures":[{"sig":"MEQCIFW5Uu2fb3f0OY/iBLsgIiaPNoZSxhhDMlSWG6X987PYAiArjmB9ombhHVWxtaNXy5Bic8QTZssyJikfP3hmSY7D+w==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":8303,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJhoLuqCRA9TVsSAnZWagAAWqsP/jqmqMFgbarHqhqfxBUz\nW4DvixM0xF4IYEgrnwf3+334Uk3QKI4LHEdwDipeCqHgIPZRTGWqfhPvwuaR\ndzMdDL3k+rBAesXume/Kf7yreprDVSfnmm6TpE5D3bTSvU3sXgyVNvo2TXs/\n2Uu5Qi9hUOTqg2DH8RfKQ6kTEviqk3t3s5pxH+EscfgFqGTKmzBbB0OM8wee\nrFV7+WnDq7F2lWJaMe2spaa+72xqqUNWXksXEM0Z4ZYvUKv7fYut3j9hwPQz\nY2XSR5Y0ASFnTeJ2GliwNoPLP2duR4YUImJzDpn/urka1JjBQnAJnUyA6qFa\n5w+vbrhqp7qGv+9OgGFYaseQEV/nwwOSZbzwEllzLbBgj/C0zKSJG0G5EVYV\nFPgtzPhabL7aBVXymAJzjlPW4tUW9J5Opny5HARp80z7zPs7H4an9/b4lkec\nNUa/bkhfNZbdRmWj7Qt0wlQRmO7rBNnGVSe/1GDQzT4z7NTIE4CLDbCzLUNr\nO/yymXr2rAeRJmL0xxhO5GC3DKOa4RQ5kaBVa17qOjFjzymCAoaWw/95yNod\nSwpSwUQwqkpigZiE+js0zQYt0zg3fd8y3QSZUJG5KrCOMKcFUWIe1pbz2V36\nC1pO7woS6cdUZ7AQTvAPsIHjg59+55sg/6zysMFtk4OgFIaqRqOb5v6QnHRo\n246K\r\n=/ie+\r\n-----END PGP SIGNATURE-----\r\n"},"main":"lib/index.js","module":"es/index.js","gitHead":"16bc9e3fa442c4bdb75ca24a4c75d2c2ed9c8c89","scripts":{"test":"cross-env BABEL_ENV=commonjs jest","build":"yarn build:es && yarn build:lib","clean":"rimraf lib es coverage","release":"yarn clean && yarn test && yarn build && npm publish","build:es":"babel src --out-dir es --ignore \"src/__tests__\"","coverage":"yarn test --coverage","build:lib":"cross-env BABEL_ENV=commonjs babel src --out-dir lib --ignore \"src/__tests__\""},"_npmUser":{"name":"rofrischmann","email":"robin@weser.io"},"repository":{"url":"git+https://github.com/robinweser/small-date.git","type":"git"},"_npmVersion":"8.1.0","description":"Tiny (0.8kb) date formatting library with built-in i18n","directories":{},"sideEffects":false,"_nodeVersion":"16.13.0","publishConfig":{"access":"public"},"_hasShrinkwrap":false,"devDependencies":{"jest":"^27.2.4","rimraf":"^3.0.2","prettier":"^2.4.1","cross-env":"^7.0.3","@babel/cli":"^7.2.0","babel-core":"7.0.0-bridge.0","babel-jest":"^23.6.0","@babel/core":"^7.2.2","@babel/preset-env":"^7.2.0","babel-plugin-transform-es2015-modules-commonjs":"^6.24.1"},"_npmOperationalInternal":{"tmp":"tmp/small-date_1.0.1_1637923754533_0.9136479156948634","host":"s3://npm-registry-packages"}},"1.0.2":{"name":"small-date","version":"1.0.2","keywords":["date","formatting","date-fns","datetime","format"],"author":{"name":"Robin Weser","email":"contact@weser.io"},"license":"MIT","_id":"small-date@1.0.2","maintainers":[{"name":"rofrischmann","email":"robin@weser.io"}],"homepage":"https://github.com/robinweser/small-date","bugs":{"url":"https://github.com/robinweser/small-date/issues"},"dist":{"shasum":"c0f5e586179656f095ff5e398e1a4d64f8133d2c","tarball":"https://registry.npmjs.org/small-date/-/small-date-1.0.2.tgz","fileCount":7,"integrity":"sha512-F45p9yr0IM53KmXNMDxuvaIFFcj7NWUptMGycDQFu9ZeZ+kYQN6DKyyqvDlG01kn0Ubr9s52PU2t0rRr/FM+rQ==","signatures":[{"sig":"MEQCIDKgFtiZpKJ5evXKRziPZ6S0XR2N2vqT64dbfnVx4Yj+AiB6cpdaqUrW7xdExcwFzEZ2p1V8DJgVXLG7AuuyKUpABg==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":15499,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJhoLyJCRA9TVsSAnZWagAAAHsQAIu86upRmOaGRGyl4ya+\nkYrxYSda14q9eqzRWWl1ikio4r9hI4uUROzQT1q2jeZbOajK6Uz4Ibptrlib\nDsPr2j/zicBEYzQya6GT5+Ae5EuEyMTGO28ejDnaGIuIAABdVw1N1rWgVkdI\nYmva93y9cseSVbbqvAavlSI86MFcLKtudTleGhhs/mkSSCYClrNIurSLs91n\nCWPTEuOUrYyjpI4Gf1jln8KU7Ab/oy9+7EuG2k91hGAMbMy4izV6kSdgYmvA\nu5iUXNzFSw9/LcpDUsqUxXreAR/Xfchzyqc47mfOAq4IQ364RH/UzydxMwXx\nD+PqssMEw9F9OhUB4lkWn8AwpjX17Orsoiflte5Md33t4PgZn0ig2aFB9RNT\nSHlB39ybvR4wfB6LsA/AYNplFhd1UsifF2aQ8nXLAPds0wHy2uc3MFr+9IeN\nPGsZmWAB4iZGQzgZQvXDhF+MBNPUcmwFOXFw5n7UPIbsylZMycSdluzk42P7\nZdk1BEgWl0WddLxExEq76PPpJUFgWlPmZ0WgMd3XYXJ/xBdr8nfeEMh4fa1y\njhhVJBd6htREAgkfBZyp16NnTQnwuCKrJ8V5KALp3AvWWMiZf9ClhXadNR0w\nbSBCcxDGPXdbQP07rT2UDNxoR6/022vBYEyN8jNenykFTeO1YeLBERlNl2aq\n7AxM\r\n=USgA\r\n-----END PGP SIGNATURE-----\r\n"},"main":"lib/index.js","module":"es/index.js","gitHead":"16bc9e3fa442c4bdb75ca24a4c75d2c2ed9c8c89","scripts":{"test":"cross-env BABEL_ENV=commonjs jest","build":"yarn build:es && yarn build:lib","clean":"rimraf lib es coverage","release":"yarn clean && yarn test && yarn build && npm publish","build:es":"babel src --out-dir es --ignore \"src/__tests__\"","coverage":"yarn test --coverage","build:lib":"cross-env BABEL_ENV=commonjs babel src --out-dir lib --ignore \"src/__tests__\""},"_npmUser":{"name":"rofrischmann","email":"robin@weser.io"},"repository":{"url":"git+https://github.com/robinweser/small-date.git","type":"git"},"_npmVersion":"8.1.0","description":"Tiny (0.8kb) date formatting library with built-in i18n","directories":{},"sideEffects":false,"_nodeVersion":"16.13.0","publishConfig":{"access":"public"},"_hasShrinkwrap":false,"devDependencies":{"jest":"^27.2.4","rimraf":"^3.0.2","prettier":"^2.4.1","cross-env":"^7.0.3","@babel/cli":"^7.2.0","babel-core":"7.0.0-bridge.0","babel-jest":"^23.6.0","@babel/core":"^7.2.2","@babel/preset-env":"^7.2.0","babel-plugin-transform-es2015-modules-commonjs":"^6.24.1"},"_npmOperationalInternal":{"tmp":"tmp/small-date_1.0.2_1637923976903_0.17126144489650463","host":"s3://npm-registry-packages"}},"2.0.0":{"name":"small-date","version":"2.0.0","keywords":["date","formatting","date-fns","datetime","format"],"author":{"name":"Robin Weser","email":"contact@weser.io"},"license":"MIT","_id":"small-date@2.0.0","maintainers":[{"name":"rofrischmann","email":"robin@weser.io"}],"homepage":"https://github.com/robinweser/small-date","bugs":{"url":"https://github.com/robinweser/small-date/issues"},"dist":{"shasum":"a36410d9df34b375309ce2365e724edd9d5edd53","tarball":"https://registry.npmjs.org/small-date/-/small-date-2.0.0.tgz","fileCount":7,"integrity":"sha512-WRDlufXiYQupV7ni9bLsoj+UMLnIKISyZl+iSntSAzi5SVqfMZvnf8nufCKPVFufS84aZBoCshzu+ACe38XG4A==","signatures":[{"sig":"MEYCIQCoWZ/7TCM19eGNN73tJHJQJXEtbUb8ExTOMAiDrUt/2QIhAIj9Nye/O2XYUvcEhlLZpT5f6uv7WKbJ3x3fl5Tw2sjG","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":15856,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJjh3q+ACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmomOA/9GCU0yD/x6w7t+penIzQVcP8kvuBoJzGiD9t4AX7H1YxqNxmz\r\nmllVlBHdigNJ/hgfwEpcPSAf4cdAailip9IEO5XIb5cy8KAgyPr91v0QEeFv\r\nWTAF7pcf28HbXI7LtTKa4RZYBvUrSUbb69a3QkNuPXIJIE35LRDxkCaNcPSR\r\n0J2/s26JcZ68X/bDbNguX+wUix7VydCoNq3rM/1elmVzOhJrmOReRh1Z+VBB\r\nlB0RzZ71gcwTOAKRPUdGbdwdvgpI8iplBocTxcNNkFOp/HJsEEb/3bBjJT1Z\r\nIl5Df5jITFDmuXSfhsy28mEnUF5vxEL1UqDmPlQ3CYFK17VzqvUWh6+Hox05\r\nh8MalBv48HuR+Mb/aFF8UIAkC5nfI2zO9r3e8RGZbSGDKYQoDoDlEujtU++H\r\n4SJQu/5BfMO7zWj2xDz+WVoj8Y1UripduXChE2QZHySlnvwH7vZ4kjXYVkEe\r\n2RBEDshv/F+6QOP/vFccc8pm6iySI8mNVlEZsHJ9djy2oHMDz6LoxAxdN3ar\r\n9nlAArlzcumlGJB5bbFHujm9IgUelF4Jh5glmVGDpfvsD49U4td2z+cQdukT\r\n3yzW/mp8cfbSx7ib0iNeU77K95RdN9g31aWzlWXg5WwlBdoC92pExPii6pvN\r\nFnB/rTnuTN9JoWrZjZlUVfTULJ5p0hLCcgU=\r\n=osti\r\n-----END PGP SIGNATURE-----\r\n"},"main":"lib/index.js","module":"es/index.js","gitHead":"6224f7d99fa6b57783859744e9cd242b82a33e27","scripts":{"test":"cross-env BABEL_ENV=commonjs jest","build":"yarn build:es && yarn build:lib","clean":"rimraf lib es coverage","release":"yarn clean && yarn test && yarn build && npm publish","build:es":"babel src --out-dir es --ignore \"src/__tests__\"","coverage":"yarn test --coverage","build:lib":"cross-env BABEL_ENV=commonjs babel src --out-dir lib --ignore \"src/__tests__\""},"_npmUser":{"name":"rofrischmann","email":"robin@weser.io"},"repository":{"url":"git+https://github.com/robinweser/small-date.git","type":"git"},"_npmVersion":"8.19.2","description":"Tiny (0.8kb) date formatting library with built-in i18n","directories":{},"sideEffects":false,"_nodeVersion":"16.17.1","publishConfig":{"access":"public"},"_hasShrinkwrap":false,"devDependencies":{"jest":"^27.2.4","rimraf":"^3.0.2","prettier":"^2.4.1","cross-env":"^7.0.3","@babel/cli":"^7.2.0","babel-core":"7.0.0-bridge.0","babel-jest":"^23.6.0","@babel/core":"^7.2.2","@babel/preset-env":"^7.2.0","babel-plugin-transform-es2015-modules-commonjs":"^6.24.1"},"_npmOperationalInternal":{"tmp":"tmp/small-date_2.0.0_1669823166132_0.826348301169473","host":"s3://npm-registry-packages"}},"2.0.1":{"name":"small-date","version":"2.0.1","description":"Tiny (0.8kb) date formatting library with built-in i18n","author":{"name":"Robin Weser","email":"contact@weser.io"},"license":"MIT","homepage":"https://github.com/robinweser/small-date","repository":{"type":"git","url":"git+https://github.com/robinweser/small-date.git"},"main":"lib/index.js","module":"es/index.js","types":"index.d.ts","sideEffects":false,"publishConfig":{"access":"public"},"scripts":{"clean":"rimraf lib es coverage","build":"yarn build:es && yarn build:lib","build:es":"babel src --out-dir es --ignore \"src/__tests__\"","build:lib":"cross-env BABEL_ENV=commonjs babel src --out-dir lib --ignore \"src/__tests__\"","release":"yarn clean && yarn test && yarn build && npm publish","test":"cross-env BABEL_ENV=commonjs jest","coverage":"yarn test --coverage"},"keywords":["date","formatting","date-fns","datetime","format"],"devDependencies":{"@babel/cli":"^7.2.0","@babel/core":"^7.2.2","@babel/preset-env":"^7.2.0","babel-plugin-transform-es2015-modules-commonjs":"^6.24.1","babel-core":"7.0.0-bridge.0","babel-jest":"^23.6.0","cross-env":"^7.0.3","jest":"^27.2.4","prettier":"^2.4.1","rimraf":"^3.0.2"},"_id":"small-date@2.0.1","gitHead":"ce9bebdb54cf8b1aaa793087599ae21b197ebbd2","bugs":{"url":"https://github.com/robinweser/small-date/issues"},"_nodeVersion":"21.4.0","_npmVersion":"10.2.4","dist":{"integrity":"sha512-eZPxg8Jjc2tJ2W3MbL80u6vMcMPaed1VFUVfl42V632Db27diX0oHUjr0UuDag3dAj3KlR2SRrgHlS31hQotxQ==","shasum":"f17569204e06ffdc28cbd43a1a421667c2ac01aa","tarball":"https://registry.npmjs.org/small-date/-/small-date-2.0.1.tgz","fileCount":8,"unpackedSize":16077,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCFyVrImC2NcJeimH/Z1znXuZziV9DBOPKm7HTJnitliAIgRjXn6N2PIqF1u+Qi7lfyUh+COzNua3MpxQOh2baevQ4="}]},"_npmUser":{"name":"rofrischmann","email":"robin@weser.io"},"directories":{},"maintainers":[{"name":"rofrischmann","email":"robin@weser.io"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/small-date_2.0.1_1730878845535_0.15835708209701438"},"_hasShrinkwrap":false}},"time":{"created":"2021-10-05T12:54:28.434Z","modified":"2024-11-06T07:40:45.854Z","1.0.0":"2021-10-05T12:54:28.622Z","1.0.1":"2021-11-26T10:49:14.648Z","1.0.2":"2021-11-26T10:52:57.064Z","2.0.0":"2022-11-30T15:46:06.300Z","2.0.1":"2024-11-06T07:40:45.694Z"},"bugs":{"url":"https://github.com/robinweser/small-date/issues"},"author":{"name":"Robin Weser","email":"contact@weser.io"},"license":"MIT","homepage":"https://github.com/robinweser/small-date","keywords":["date","formatting","date-fns","datetime","format"],"repository":{"type":"git","url":"git+https://github.com/robinweser/small-date.git"},"description":"Tiny (0.8kb) date formatting library with built-in i18n","maintainers":[{"name":"rofrischmann","email":"robin@weser.io"}],"readme":"# small-date\n\nA tiny (0.8kb) date formatting library with built-in i18n support.<br>\n\n## Why?\n\nThere are several date formatting libraries out there. It all started with [Moment](https://momentjs.com), while nowadays smaller alternatives such as [date-fns](https://date-fns.org), [DayJS](https://day.js.org) and [Luxon](https://moment.github.io/luxon/#/) among others are raising in popularity.<br>\nWhile [date-fns](https://date-fns.org) already comes in a really small format, it was still way to big for my most common use case: Format a date with a given pattern.<br>\nSo I created this tiny library as an attempt to solve this specific problem with as little bytes as possible.\n\n## How it works\n\nI was using [Intl.DateTimeFormat](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Intl/DateTimeFormat) previously and really liked it. So I had the idea to use that under the hood while providing a nice API that accepts a pattern in a widely used format.<br>\nThe nice thing about [Intl.DateTimeFormat](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Intl/DateTimeFormat) is that it has built-in i18n support.\n\n## Browser Support\n\nIt works in all modern browsers.<br>\n\n> However, if you need to support IE11, pick one of the libraries mentioned above!\n\n## Installation\n\n```sh\nyarn add small-date\n```\n\n## Usage\n\nThe libraries exports a single function that accepts the following parameters:\n\n| Parameter | Type      | Description                                               |\n| --------- | --------- | --------------------------------------------------------- |\n| Date      | `Date`    | The date that is formatted                                |\n| Pattern  | `string`   | The pattern in which the date should be formatted         |\n| Config   | `Object`   | A config option that accepts a `locale` and a `timeZone`  |\n\n```javascript\nimport { format } from 'small-date'\n\n// Wednesday 03 March 2021, 11:45 am\nformat(new Date(), 'DDD dd MMMM yyyy, hh:mm a')\n\n// Mittwoch 03 März 2021, 11:45\nformat(new Date(), 'DDD dd MMMM yyyy, HH:mm', {\n  locale: 'de-DE',\n})\n```\n\n### Escaping Text\n\nSometimes we want to add arbitary text into our pattern. The problem is: Words break if they include tokens. Therefore, it is safest to escape all words with `\"` quotes.\n\n```javascript\nimport { format } from 'small-date'\n\n// Today is Wednesday the 03. of March\nformat(new Date(), '\"Today is\" DDD \"the\" dd. \"of\" MMMM')\n```\n\n### TimeZone\n\nWe can pass a `timeZone` to the configuration to get the locale date at this particular zone.\n\n```javascript\nimport { format } from 'small-date'\n\n// Wednesday 03 March 2021, 09:45 pm\nformat(new Date(), 'DDD dd MMMM yyyy, hh:mm a', {\n  timeZone: 'Australia/Sydney',\n})\n```\n\n## Pattern Tokens\n\n> All examples below use the following date: `new Date(2021, 2, 3, 18, 7, 8, 9)` and the `en-US` locale.\n\n| Token |  Description                    | Example                          |\n| ----- | ------------------------------- | -------------------------------- |\n| D     | Weekday, 1 letter               | `W`                              |\n| DD    | Weekday, 3 letters              | `Wed`                            |\n| DDD   | Weekday, long                   | `Wednesday`                      |\n| d     | Day of the month, no padding    | `3`                              |\n| dd    | Day of the month, padded to 2   | `03`                             |\n| M     | Month, numeric                  | `3`                              |\n| MM    | Month, 2 digits                 | `03`                             |\n| MMM   | Month, 3 letters                | `Mar`                            |\n| MMMM  | Month, long                     | `March`                          |\n| y     | Year, numeric                   | `2021`                           |\n| yy    | Year, 2 digits                  | `21`                             |\n| yyyy  | Year, numeric                   | `2021`                           |\n| h     | Hours, no padding               | `6`                              |\n| hh    | Hours, padded to 2              | `06`                             |\n| H     | Hours in 24-format, no padding  | `18`                             |\n| HH    | Hours in 24-format, padded to 2 | `18`                             |\n| m     | Minutes, no padding             | `7`                              |\n| m     | Minutes, padded to 2            | `07`                             |\n| s     | Seconds, no padding             | `8`                              |\n| ss    | Seconds, padded to 2            | `08`                             |\n| S     | Milliseconds, no padding        | `9`                              |\n| SS    | Milliseconds, padded to 2       | `09`                             |\n| SSS   | Milliseconds, padded to 3       | `009`                            |\n| G     | Era, narrow                     | `A`                              |\n| GG    | Era, short                      | `AD`                             |\n| GGG   | Era, long                       | `Anno Domino`                    |\n| Z     | Time zone, short                | `GMT+1`                          |\n| ZZ    | Time short, long                | `Central European Standard Time` |\n| P     | Period of the day, narrow       | `in the morning`                 |\n| PP    | Period of the day, short        | `in the morning`                 |\n| PPP   | Period of the day, long         | `in the morning`                 |\n| a     | Meridiem                        | `pm`                             |\n\n## License\n\nsmall-date is licensed under the [MIT License](http://opensource.org/licenses/MIT).<br>\nDocumentation is licensed under [Creative Common License](http://creativecommons.org/licenses/by/4.0/).<br>\nCreated with ♥ by [@robinweser](http://weser.io) and all the great contributors.\n","readmeFilename":"README.md"}