rok commented on pull request #10598:
URL: https://github.com/apache/arrow/pull/10598#issuecomment-868419790


   > Again, I'd like input from others on this (I am not experienced in this 
and may be missing something!), but my initial thoughts are that if we do 
choose to extract the day of week and month as integers only (and not implement 
the `label` argument), then all the locale stuff can be handled by `strftime` 
in terms of converting it from an integer to a text representation, so the 
locale is not relevant to TemporalOptions specifically within the context of 
extracting components from datetime objects.
   
   Well my thinking is to enable this `day_of_week(timestamp_monday, "en_US") 
== 2` and `day_of_week(timestamp_monday, "en_GB") == 1`. I don't know how 
useful this is but it looks like [matlab is doing it in this 
way](https://www.mathworks.com/help/matlab/ref/weekday.html).
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
[email protected]


Reply via email to