Inconsistent Dates
Inconsistent Dates
I was bored so I bothered using my edit privileges to change the release status of my old JouleOS..
when specifying the release date, I had some problems..the first paragraph uses the normal American type date system (year/day/month) but for the actual projects listing, it is different..it is year/??/?? there is no day that is past 12, so I can't tell what format to use..
Really, I think you should use a more understandable format, like May 5, 2007 rather than 2007/5/5 or 5/5/2007..
when specifying the release date, I had some problems..the first paragraph uses the normal American type date system (year/day/month) but for the actual projects listing, it is different..it is year/??/?? there is no day that is past 12, so I can't tell what format to use..
Really, I think you should use a more understandable format, like May 5, 2007 rather than 2007/5/5 or 5/5/2007..
- Kevin McGuire
- Member
- Posts: 843
- Joined: Tue Nov 09, 2004 12:00 am
- Location: United States
- Contact:
no thats not really logical -- thats backwards day/month/year is right to left not left to right (so i guess it would be natural for some language groups)pcmattman wrote:Day/Month/Year is the most logical to me, it's left-to-right for a start... All you Americans do everything backwards!
that would be like writing 4 thousand 2 hundred and eighty-seven as: 7824
year (not day) is the most-significant, so year/month/day sorts correctly, while day/month/year does not -- that said, the default in US is neither -- its month/day/year
- Brynet-Inc
- Member
- Posts: 2426
- Joined: Tue Oct 17, 2006 9:29 pm
- Libera.chat IRC: brynet
- Location: Canada
- Contact:
- Kevin McGuire
- Member
- Posts: 843
- Joined: Tue Nov 09, 2004 12:00 am
- Location: United States
- Contact:
Sorry, I read everything yesterday but was too busy to reply. IMO the best way to do this with MediaWiki's #time parser function. Unfortunately, the MediaWiki version we have does not support parser functions IIRC. However, we can still use the following arguments with numerical values
|LastReleaseMonth
|LastReleaseDay
|LastReleaseYear
and use a series of if statements to print the month. I worry that this will be a performance hit for rendering the page. Template:If is already somewhat of a kludge. With 12 of them per entry, and caching of the page only in effect for anonymous viewers, it seems like a poor solution. Or maybe I have spent too much time today programming for my 486 to be realistic about this.
I'll do this to the template tomorrow, it will probably be alright.
|LastReleaseMonth
|LastReleaseDay
|LastReleaseYear
and use a series of if statements to print the month. I worry that this will be a performance hit for rendering the page. Template:If is already somewhat of a kludge. With 12 of them per entry, and caching of the page only in effect for anonymous viewers, it seems like a poor solution. Or maybe I have spent too much time today programming for my 486 to be realistic about this.
I'll do this to the template tomorrow, it will probably be alright.
- AndrewAPrice
- Member
- Posts: 2300
- Joined: Mon Jun 05, 2006 11:00 pm
- Location: USA (and Australia)
It's D/M/Y here in AU.. Y/M/D is good for sorting large directories when you organise by name.hckr83 wrote:lol..That's the format I use! and I'm American...so I guess some weird country uses it..(Australia?)
My OS is Perception.