You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Could you please help me understand the difference between some use cases of shift() and span()?
In my example, as I see it, both seem to do very similar things — one “shifts” the date to the zero weekday, while the other gets the start of the week’s range:
Yes, of course, there must be some differences in how the time is handled, for example — but the completely different results make me think I’m misunderstanding the concept.
Could you please clarify the difference in this concrete use cases?
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Hello!
Could you please help me understand the difference between some use cases of
shift()andspan()?In my example, as I see it, both seem to do very similar things — one “shifts” the date to the zero weekday, while the other gets the start of the week’s range:
Yes, of course, there must be some differences in how the time is handled, for example — but the completely different results make me think I’m misunderstanding the concept.
Could you please clarify the difference in this concrete use cases?
Thanks in advance!
Beta Was this translation helpful? Give feedback.
All reactions