question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

add week and dayOfYear API?

See original GitHub issue

for 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: image

if it’s ok, I will make a PR

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Comments:13 (13 by maintainers)

github_iconTop GitHub Comments

1reaction
Imperatcommented, May 21, 2018

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.

1reaction
Imperatcommented, May 21, 2018

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

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found