Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

dayjs对monthsShort方法的参数重载缺少了数字的支持 #1782

Open
rzdong opened this issue Jan 26, 2022 · 0 comments
Open

dayjs对monthsShort方法的参数重载缺少了数字的支持 #1782

rzdong opened this issue Jan 26, 2022 · 0 comments

Comments

@rzdong
Copy link

rzdong commented Jan 26, 2022

Describe the bug
dayjs的dayjs.monthsShort 方法和moment的有一点区别。moment支持从一个数字返回月份,这块逻辑能补上吗

比如moment.monthsShort(1) === '2月',dayjs.monthsShort(1) === '1月2月3月......11月12月'

如下图是moment的api
image

image

Expected behavior
api缺失

Information

  • Day.js Version [e.g. v1.0.0]
  • OS: [e.g. iOS]
  • Browser [e.g. chrome 62]
  • Time zone: [e.g. GMT-07:00 DST (Pacific Daylight Time)]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant