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
Today, Pendulum objects have the weekday and the isoweekday methods that shows the first 2 lines of this Wikipedia table:
Line M T W T F S S
1 1 2 3 4 5 6 7
2 0 1 2 3 4 5 6
3 2 3 4 5 6 7 1
4 1 2 3 4 5 6 0
About each line, Wikipedia tells us:
ISO 8601, usage: %_ISODOWI%, %@ISODOWI[]% (4DOS); DAYOFWEEK() (HP Prime)
No more info at Wikipedia
Usage: %NDAY OF WEEK% (NetWare, DR-DOS); %_DOWI%, %@DOWI[]% (4DOS)
Usage: HP financial calculators
I think it would be useful more 2 methods, namely dosweekday and hpweekday, including that 3rd and 4th lines. Usually Brazilian people think on the weekday as the dosweekday (3rd line), since the day names follows our numbering system (e.g. "second day" = "segundo dia", and "monday" = "segunda").
I know that it's actually possible with things like dt.isoweekday() % 7 + 1 (3rd line), but maybe that could be part of the library. =)
The text was updated successfully, but these errors were encountered:
Today, Pendulum objects have the
weekday
and theisoweekday
methods that shows the first 2 lines of this Wikipedia table:About each line, Wikipedia tells us:
%_ISODOWI%
,%@ISODOWI[]%
(4DOS);DAYOFWEEK()
(HP Prime)%NDAY OF WEEK%
(NetWare, DR-DOS);%_DOWI%
,%@DOWI[]%
(4DOS)I think it would be useful more 2 methods, namely
dosweekday
andhpweekday
, including that 3rd and 4th lines. Usually Brazilian people think on the weekday as thedosweekday
(3rd line), since the day names follows our numbering system (e.g. "second day" = "segundo dia", and "monday" = "segunda").I know that it's actually possible with things like
dt.isoweekday() % 7 + 1
(3rd line), but maybe that could be part of the library. =)The text was updated successfully, but these errors were encountered: