dateitems day-of-week disjunction

Bob Sneidar bobsneidar at iotecdigital.com
Wed Jan 25 12:23:05 EST 2017


I believe it depends on the system settings. If your localization is set to where Sunday is the 1st day of the week, then Wednesday would in fact be the 4th.

Bob S


On Jan 25, 2017, at 09:16 , Ben Rubinstein via use-livecode <use-livecode at lists.runrev.com<mailto:use-livecode at lists.runrev.com>> wrote:

The dictionary says that the seventh item of dateitems is
the numeric day of the week where Monday is day 1, Tuesday is day 2, and so forth

When I try this I find that today, Wednesday, the seventh item is 4.  If I change the date to Sunday, it's 1.

(Both docs and behaviour are consistent with 6.7.11 or 8.1.3 (rc 1) or versions in between.)

Is this an error in the documentation, or an error in the code (in which case too long standing to change, so it might as well be treated as an error in the docs); or is it due to some setting somewhere?

TIA.

Ben




More information about the use-livecode mailing list