Function #IDOW returns only 2 characters

May 22, 2013
34
0
I use @IDOW[1950-01-01,4] to detect the current display language. I expect 3 characters as documented in TCC help. However, I only get the first two, thus zo, not zon, for "zondag" (Dutch for Sunday)

What may be wrong?

System is Windows 8.1 professional, 64bits TCC version is still 11.0
 
Jan 12, 2014
423
7
Switzerland, SO
Just to confirm, Rex, because I have the same "problem".

Windows GetDateFormat takes the "Datum (kurz) (Date (short))" from the following ...?

DatumFormat.JPG


Then, of course, it's clear.

%@idowf takes the "Datum (long) (Date (long))". Should %@idow not take the first "ttt" ("ddd") from "Datum (long) (Date (long))"?
 
May 22, 2013
34
0
No plugins at all. The problem exists only when the date/time is set to Dutch format. Short date dd-mm-yyyy is numeric and should have nothing to do with names of days. The long date format is set to dddd d MMMM jjjj.
When set to English (UK or US), it returns Mon for Monday. When set to Dutch it returns ma for maandag. where maa is expected.
 
Jan 12, 2014
423
7
Switzerland, SO
That's exactly what it does.
No, unfortunately not!

Here are the results on MY system (Location-things are NOT changed since Win-Install) (NO plugins):

long.JPG

Correct.

short.JPG

NOT ok!

IF %@idow WOULD take the first three, it would be "Mit".

Greetings

PS: Do not work too hard - at least not, if you have the same temperature as here :-)
 
May 22, 2013
34
0
Regardless what is configured, the function never return the first three character of the long day of week, but the abbreviated notation as common for your country. In German and Dutch, only the first two characters are standard, while in English the first three are usual.
Such is, however, not ad documented.
 
Jan 12, 2014
423
7
Switzerland, SO
Regardless what is configured, the function never return the first three character of the long day of week, but the abbreviated notation as common for your country. In German and Dutch, only the first two characters are standard, while in English the first three are usual.
Such is, however, not ad documented.
Ok, understood! And yes, it's true, here in Switzerland, we use only the first two chars. I was (also) confused about the docu.
Thank you!
 
Jan 12, 2014
423
7
Switzerland, SO
I wasn't referring to the Windows output, I was referring to how TCC is calling the Windows API. For some unknown & undocumented reason, the API is returning the wrong result in Dutch and German (at least on some systems; I don't know whether it happens in all).
Ok, understood! It's a swiss german edition BTW. We have only the first two chars for short-day, so it's not incorrect. But after reading the docu - I was confused. Maybe the docu could changed ...

From ...
"Returns the 3-character abbreviation for the day of the week for the specified date, in the current locale language."

... to ...
"Returns the abbreviation for the day of the week for the specified date, in the current locale language."
 
Similar threads
Thread starter Title Forum Replies Date
vefatica Documentation Function parameters Support 0
Jay Sage Documentation Function @DRIVE Missing in Help Lists Support 0
Joe Caverly How to? Get name of current LIBRARY function? Support 4
x13 WeekNum function? Support 3
Joe Caverly No blank line in TEXT...ENDTEXT in a LIBRARY function Support 8
cgunhouse Ctrl-C from within a library function Support 6
C email[string] function Support 10
R FUNCTION to count NUMBER of files matching a pattern and specific length/not length Support 4
Dick Johnson Using the @instr function Support 5
vefatica '}' in a library function? Support 3
D Can the argument to RETURN be a function expansion? Support 3
J Trouble with @full[] function. Support 3
Fross Quick Function Question Support 17
vefatica Quoting @Function parameters? Support 0
Joe Caverly Debugging a LIBRARY function Support 10
Steve Pitts Documentation @CAPI function summary Support 0
x13 %x$ in function Support 3
thorntonpg @eval function, interesting results any explanation? Support 3
x13 Function to get interface user-defined name? Support 10
vefatica Fixed Help @FUNCTION, missing paragraph Support 8
Mordachai Variable followed by function constantly failing... Support 5
nickles Call a complex function Support 13
M Fixed Cannot use the "Browse..." function in "Find files/text" dialogbox Support 2
T scrput `` in alias or function Support 2
S International characters - TYPE vs %@LINE function Support 5
JohnQSmith WAD @REPEAT function Support 15
vefatica WAD Nested variable expansion in PDIR's @function[*]? Support 13
R In addition to ALIAS /Z and FUNCTION /Z, HISTORY /Z? Support 1
A pdir function usage Support 3
nikbackm FUNCTION with variable number of arguments Support 17
S %@REGQUERY function Support 1
Dan Glynhampton Documentation v15 help: Error on @TRIMALL function page Support 0
M Why doesn't this @Field function work? Support 0
fpefpe How to? user function Support 1
M Why is this function getting these results in these circumstances? Support 6
A WAD function return values with parentheses prevent evaluation of additional functions Support 31
M Just an out-of-curiosity question the List command vs. the @Lines function... Support 13
M How to? Just verification for what I think I know regarding "Function"... Support 4
Frank How to? need help with "function" Support 10
Joe Caverly How to? Function Key With INPUT Support 5
M How to? "Function" and "%[xxx]" Support 7
M Kind of a out-of-curiosity question re. the "Function" command... Support 5
M Simple question about "Function" command... Support 4
M Just a curiosity question related to the "Function" command... Support 2
C not sure of windows registry function use Support 2
Phileosophos The @urlencode function doesn't seem to URL encode Support 16
J issue to have "if" inside function Support 3
Frank is the search-function in VIEW working? Support 2
M Weird @Index function result... Support 7
M . and .. directories counted by @files function Support 5

Similar threads