From e7eec414093cafb7fe9a7bcc8294f6991c25f1eb Mon Sep 17 00:00:00 2001 From: iamkun Date: Wed, 22 Nov 2023 13:38:54 +0800 Subject: [PATCH 1/9] Update README.md --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 8423d7765..d81d63eeb 100644 --- a/README.md +++ b/README.md @@ -131,7 +131,7 @@ Support this project by becoming a sponsor. Your logo will show up here with a l                   - +          From 43b62e0438c43126ac4fb904920a25e3a82c4e78 Mon Sep 17 00:00:00 2001 From: iamkun Date: Sat, 30 Dec 2023 13:57:08 +0800 Subject: [PATCH 2/9] chore: Update README.md --- README.md | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/README.md b/README.md index d81d63eeb..2a898c67f 100644 --- a/README.md +++ b/README.md @@ -123,13 +123,17 @@ Support this project by becoming a sponsor. Your logo will show up here with a l          - - + +          - + + +          - + + +                   From f0c9a41c6ec91528f3790e442b0c5dff15a4e640 Mon Sep 17 00:00:00 2001 From: iamkun Date: Sat, 30 Dec 2023 14:42:33 +0800 Subject: [PATCH 3/9] fix: update locale Bulgarian monthsShort Jan (#2538) * fix: update locale Bulgarian monthsShort Jan --- src/locale/bg.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/locale/bg.js b/src/locale/bg.js index 336f67824..b480145c8 100644 --- a/src/locale/bg.js +++ b/src/locale/bg.js @@ -7,7 +7,7 @@ const locale = { weekdaysShort: 'нед_пон_вто_сря_чет_пет_съб'.split('_'), weekdaysMin: 'нд_пн_вт_ср_чт_пт_сб'.split('_'), months: 'януари_февруари_март_април_май_юни_юли_август_септември_октомври_ноември_декември'.split('_'), - monthsShort: 'янр_фев_мар_апр_май_юни_юли_авг_сеп_окт_ное_дек'.split('_'), + monthsShort: 'яну_фев_мар_апр_май_юни_юли_авг_сеп_окт_ное_дек'.split('_'), weekStart: 1, ordinal: (n) => { const last2Digits = n % 100 From fa304a319ef28f0323def2dc75f3493bdf1b6637 Mon Sep 17 00:00:00 2001 From: iamkun Date: Sat, 6 Jan 2024 22:32:18 +0800 Subject: [PATCH 4/9] chore: Update README.md --- README.md | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/README.md b/README.md index 2a898c67f..90d5619b0 100644 --- a/README.md +++ b/README.md @@ -123,6 +123,10 @@ Support this project by becoming a sponsor. Your logo will show up here with a l          + + + +         From bdcc336613c9fa466b385574e88d0b43629475bc Mon Sep 17 00:00:00 2001 From: iamkun Date: Mon, 8 Jan 2024 19:04:57 +0800 Subject: [PATCH 5/9] chore: Update README.md --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 90d5619b0..00bb88ddd 100644 --- a/README.md +++ b/README.md @@ -123,7 +123,7 @@ Support this project by becoming a sponsor. Your logo will show up here with a l          - +          From 2076da970047c6e0a22c8d4243a42d52833a5df2 Mon Sep 17 00:00:00 2001 From: iamkun Date: Tue, 20 Feb 2024 21:18:34 +0800 Subject: [PATCH 6/9] chore: Update README.md --- README.md | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/README.md b/README.md index 00bb88ddd..7b2fa9a37 100644 --- a/README.md +++ b/README.md @@ -139,6 +139,10 @@ Support this project by becoming a sponsor. Your logo will show up here with a l          + + BestKru + +                  From 44b0936ad709212b63e48672d8b9c225e2c3b830 Mon Sep 17 00:00:00 2001 From: Mads Balslev Date: Tue, 23 Apr 2024 19:29:33 +0200 Subject: [PATCH 7/9] fix: Update 'da' locale to match correct first week of year (#2592) The first week of the year in Denmark is always the week containing January 4th --- src/locale/da.js | 1 + 1 file changed, 1 insertion(+) diff --git a/src/locale/da.js b/src/locale/da.js index 0b5709f0e..536081ad9 100644 --- a/src/locale/da.js +++ b/src/locale/da.js @@ -9,6 +9,7 @@ const locale = { months: 'januar_februar_marts_april_maj_juni_juli_august_september_oktober_november_december'.split('_'), monthsShort: 'jan._feb._mar._apr._maj_juni_juli_aug._sept._okt._nov._dec.'.split('_'), weekStart: 1, + yearStart: 4, ordinal: n => `${n}.`, formats: { LT: 'HH:mm', From 030958251d02e66a91fd97ae8cdb6010fea60eb5 Mon Sep 17 00:00:00 2001 From: hugo-syn <61210734+hugo-syn@users.noreply.github.com> Date: Tue, 23 Apr 2024 19:31:00 +0200 Subject: [PATCH 8/9] chore: add french README.md (#2547) --- docs/fr/README-fr.md | 163 +++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 163 insertions(+) create mode 100644 docs/fr/README-fr.md diff --git a/docs/fr/README-fr.md b/docs/fr/README-fr.md new file mode 100644 index 000000000..ad4155838 --- /dev/null +++ b/docs/fr/README-fr.md @@ -0,0 +1,163 @@ +Français | [English](../../README.md) | [简体中文](./docs/zh-cn/README.zh-CN.md) | [日本語](./docs/ja/README-ja.md) | [Português Brasileiro](./docs/pt-br/README-pt-br.md) | [한국어](./docs/ko/README-ko.md) | [Español (España)](./docs/es-es/README-es-es.md) | [Русский](./docs/ru/README-ru.md) | [Türkçe](./docs/tr/README-tr.md) | [සිංහල](./docs/si/README-si.md) | [עברית](./docs/he/README-he.md) + +

Day.js

+

Alternative rapide de 2kB à Moment.js avec la même API moderne

+

+ Gzip Size + NPM Version + Build Status + Codecov + License +
+ + Sauce Test Status + +

+ +> Day.js est une bibliothèque JavaScript minimaliste qui analyse, valide, manipule et affiche les dates et heures pour les navigateurs modernes avec une API largement compatible avec Moment.js. Si vous utilisez Moment.js, vous savez déjà comment utiliser Day.js. + +```js +dayjs().startOf('month').add(1, 'day').set('year', 2018).format('YYYY-MM-DD HH:mm:ss'); +``` + +* 🕒 Familiarité avec l'API et les modèles Moment.js +* 💪 Immuable +* 🔥 Enchaînable +* 🌐 Support I18n +* 📦 Petite bibliothèque de 2kb +* 👫 Tous les navigateurs sont pris en charge + +--- + +## Mise en place + +### Documentation + +Vous trouverez plus de détails sur l'API et les autres documents sur le site [day.js.org](https://day.js.org/). + +### Installation + +```console +npm install dayjs --save +``` + +📚[Guide d'installation](https://day.js.org/docs/en/installation/installation) + +### API + +Il est facile d'utiliser les API de Day.js pour analyser, valider, manipuler et afficher des dates et des heures. + +```javascript +dayjs('2018-08-08') // parse + +dayjs().format('{YYYY} MM-DDTHH:mm:ss SSS [Z] A') // display + +dayjs().set('month', 3).month() // get & set + +dayjs().add(1, 'year') // manipulate + +dayjs().isBefore(dayjs()) // query +``` + +📚[API Reference](https://day.js.org/docs/en/parse/parse) + +### I18n + +Day.js offre une excellente prise en charge de l'internationalisation. + +Mais aucun d'entre eu ne sera inclus dans votre construction si vous ne l'utilisez pas. + +```javascript +import 'dayjs/locale/es' // load on demand + +dayjs.locale('es') // use Spanish locale globally + +dayjs('2018-05-05').locale('zh-cn').format() // use Chinese Simplified locale in a specific instance +``` + +📚[Internationalisation](https://day.js.org/docs/en/i18n/i18n) + +### Plugin + +Un plugin est un module indépendant qui peut être ajouté à Day.js pour en étendre les fonctionnalités ou en ajouter de nuovelles. + +```javascript +import advancedFormat from 'dayjs/plugin/advancedFormat' // load on demand + +dayjs.extend(advancedFormat) // use plugin + +dayjs().format('Q Do k kk X x') // more available formats +``` + +📚[Liste des plugins](https://day.js.org/docs/en/plugin/plugin) + +### Tendance d'utilisation + + + + + +## Sponsors + +Soutenez ce projet en devenant sponsor. Votre logo apparaîtra ici avec un lien vers votre site web. + +[[Devenir sponsor via Github](https://github.com/sponsors/iamkun/)] [[Devenir sponsor via OpenCollective](https://opencollective.com/dayjs#sponsor)] + + + + +         + + + +         + + + +         + + + +         + + + +         + + + +         + + + +         + +         + + +## Contributeurs + +Ce projet existe grâce à toutes les personnes qui y contribuent. + +Donnez-nous une 💖 étoile 💖 pour nous soutenir. Nous vous remercions. + +Et merci à tous nos donateurs ! 🙏 + + + + + +
+ + +## Licence + +Day.js est sous licence [MIT License](./LICENSE). From f68d73efe562fdedd9e288ecb0ce6565e602f507 Mon Sep 17 00:00:00 2001 From: Charlie Levine <52892481+charliejlevine@users.noreply.github.com> Date: Sat, 27 Apr 2024 10:33:47 -0700 Subject: [PATCH 9/9] fix: day of week type literal (#2630) --- types/index.d.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/types/index.d.ts b/types/index.d.ts index 766bd7943..cd159dcae 100644 --- a/types/index.d.ts +++ b/types/index.d.ts @@ -114,7 +114,7 @@ declare namespace dayjs { * ``` * Docs: https://day.js.org/docs/en/get-set/day */ - day(): number + day(): 0 | 1 | 2 | 3 | 4 | 5 | 6 /** * Set the day of the week. *