add week and dayOfYear API?
See original GitHub issuefor to gets the week of the year and to gets the day of year like moment().week()
and moment().dayOfYear()
It’s always used in projects,especially in a project which is involving statistical analysis of data.
I have written the code like this:
if it’s ok, I will make a PR
Issue Analytics
- State:
- Created 5 years ago
- Comments:13 (13 by maintainers)
Top Results From Across the Web
How to get day of month, day of year and day of week in ...
This example demonstrate about How to get day of month, day of year and day of week in android using offset date time...
Read more >DayOfYear
DayOfYear adds .dayOfYear() API to returns a number indicating the Dayjs 's day of the year, or to set the day of the...
Read more >pandas.Period.dayofyear — pandas 1.5.2 documentation
This attribute returns the day of the year on which the particular date occurs. The return value ranges between 1 to 365 for...
Read more >Date functions | BigQuery - Google Cloud
DAYOFWEEK : Returns values in the range [1,7] with Sunday as the first day of the week. · DAY · DAYOFYEAR · WEEK...
Read more >YEAR* / DAY* / WEEK* / MONTH / QUARTER
Usage Notes¶ ; DAYOFYEAR. Day (number) of the year. 1 to 366 ; WEEK , WEEKOFYEAR · Week (number) of the year. 1...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
I take my previous words back after example with calendar plugins. It’s really important to give developers of vue/react components, jquery plugins and other extremely light version of the library. Finally agree with @iamkun.
By my personal opinion it must be in core of the library. These functions are useful for some users, but if we will remove some of them for getting better library size, we have the risk to have a little piece of functional in library itself. Also it’s not good practice to remove some features which were been released without moving it into “deprecated” status. Probably we can investigate how to implement these methods as short as possible. It’s needed to have a really good curiosity, but we can carefully discuss implementation and review PR’s