Re: [SMW-devel] Patch to make SMW output ISO8601 dates

2009-03-05 Thread Patrick Nagel
Hi, it's me again... I thought some more about On 2009-03-05 03:09, Markus Krötzsch wrote: I suggest a slightly different control interface, though. The output is only a problem for #ask queries, right?My suggestion is to use the existing printout modifier mechanism that works for #ask

Re: [SMW-devel] Patch to make SMW output ISO8601 dates

2009-03-05 Thread CNIT
Hi, it's me again... I thought some more about On 2009-03-05 03:09, Markus Krötzsch wrote: I suggest a slightly different control interface, though. The output is only a problem for #ask queries, right?My suggestion is to use the existing printout modifier mechanism that works for

Re: [SMW-devel] Patch to make SMW output ISO8601 dates

2009-03-05 Thread Patrick Nagel
Hi Dmitriy, On 2009-03-05 16:51, CNIT wrote: I think it would be best to also have a possibility to set the SMW-wide default to ISO8601, like in my proposal. Adding a possible printout modifier value localized (which would override the SMW-wide default setting) would then give all

Re: [SMW-devel] Patch to make SMW output ISO8601 dates

2009-03-05 Thread CNIT
Patrick Nagel пишет: I'll try to come up with a patch that makes SMW understand more ISO8601 dates. I will only implement the (recommended) extended format (with hyphens / colons), not the basic format (without hyphens / colons). I don't know about week dates and ordinal dates yet,

Re: [SMW-devel] Patch to make SMW output ISO8601 dates

2009-03-05 Thread Markus Krötzsch
My aggregated comments: * ISO dates are not generally accepted as inputs. this is so because the default ISO order of date parts is not the same as the preferred default order in most languages (even in English). One could attempt a work-around based on the fact that all ISO years must be 4

Re: [SMW-devel] Patch to make SMW output ISO8601 dates

2009-03-05 Thread Markus Krötzsch
On Donnerstag, 5. März 2009, Patrick Nagel wrote: Hi Markus, On 2009-03-05 03:09, Markus Krötzsch wrote: Could something like this be included in SMW? Yes. I suggest a slightly different control interface, though. The output is only a problem for #ask queries, right? My suggestion is to

[SMW-devel] Patch to make SMW output ISO8601 dates

2009-03-04 Thread Patrick Nagel
Hi, since I need our SMW to output ISO8601 date output (see [1]) I wrote a quick patch to SMW_DV_Time.php that honours the (newly introduced) $smwgISO8601DateOutput variable. Could something like this be included in SMW? Patrick. [1]:

Re: [SMW-devel] Patch to make SMW output ISO8601 dates

2009-03-04 Thread Markus Krötzsch
On Mittwoch, 4. März 2009, Patrick Nagel wrote: Hi, since I need our SMW to output ISO8601 date output (see [1]) I wrote a quick patch to SMW_DV_Time.php that honours the (newly introduced) $smwgISO8601DateOutput variable. Could something like this be included in SMW? Yes. I suggest a

Re: [SMW-devel] Patch to make SMW output ISO8601 dates

2009-03-04 Thread Patrick Nagel
Hi Markus, On 2009-03-05 03:09, Markus Krötzsch wrote: Could something like this be included in SMW? Yes. I suggest a slightly different control interface, though. The output is only a problem for #ask queries, right? My suggestion is to use the existing printout modifier mechanism that