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

2009-03-05 Thread Patrick Nagel
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Hi, On 2009-03-05 20:15, Markus Krötzsch wrote: >> There is one thing I'm not 100% sure about though: Your implementation >> always prints out a complete date, like '2009-03-05' by printing out a >> default of '01' for the MM and DD parts when they ar

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

2009-03-05 Thread Patrick Nagel
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Hi Markus, On 2009-03-05 20:10, Markus Krötzsch wrote: > * I can imagine a global "date format" switch that may be set to ISO to make > it a default for all dates. But I do not know which printout modifier to use > for "normal" dates then (note that

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 sugge

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 digi

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

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
> 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 tha

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-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

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

[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]: http://sourceforge.net/mailarchive/forum.php?thread_nam