Rockbox.org home
Downloads
Release release
Dev builds dev builds
Extras extras
themes themes
Documentation
Manual manual
Wiki wiki
Device Status device status
Support
Forums forums
Mailing lists mailing lists
IRC IRC
Development
Bugs bugs
Patches patches
Dev Guide dev guide
Search



Donate

Rockbox Technical Forums


Login with username, password and session length
Home Help Search Staff List Login Register
News:

Welcome to the Rockbox Technical Forums!

+  Rockbox Technical Forums
|-+  Rockbox Development
| |-+  Feature Ideas
| | |-+  Configurable date format?
« previous next »
  • Print
Pages: [1]

Author Topic: Configurable date format?  (Read 2086 times)

Offline wintermute23

  • Member
  • *
  • Posts: 116
  • What Would Batman Do?
Configurable date format?
« on: March 26, 2010, 03:56:18 PM »
Just as users can set their time format to 12 or 24 hours, and the WPS syntax allows a theme to respect that choice, would it be possible to allow the user to decide whether they want the date displayed as month-day-year, day-month-year or year-month-day?
Logged
Past: iRiver H320 w/ 32GB CF card mod; iPod 4th Gen 30GB; iPod 5th Gen 30GB

Present: iPod Classic 80GB

Offline JdGordon

  • Member
  • *
  • Posts: 1817
  • Constantly breaking stuff
Re: Configurable date format?
« Reply #1 on: March 28, 2010, 05:16:16 AM »
where?
Logged


Using PMs to annoy devs about bugs/patches is not a good way to have the issue looked at.

Offline wintermute23

  • Member
  • *
  • Posts: 116
  • What Would Batman Do?
Re: Configurable date format?
« Reply #2 on: March 28, 2010, 05:47:43 AM »
What do you mean?

Where would they set it? Probably right next to where the date format is currently set.

Where would it take effect? Within conditionals in the WPS, just as with the date format.
Logged
Past: iRiver H320 w/ 32GB CF card mod; iPod 4th Gen 30GB; iPod 5th Gen 30GB

Present: iPod Classic 80GB

Offline JdGordon

  • Member
  • *
  • Posts: 1817
  • Constantly breaking stuff
Re: Configurable date format?
« Reply #3 on: March 28, 2010, 05:52:59 AM »
I was asking on which screens you wanted this.
in the WPS/SBS its just up to the themr to setup the code to do it. The 12/24hr setting comes from old code in the statusbar which isnt really required anymore and its very nlikely we add a setting for this just for skins.

I've had an idea for a long time for something I've wanted to do but had no support for... bassically configurable settings outside the regular menus for themes. This is how I would expect a time format to be done (if it ever happened, hich it probabl;y wont)
Logged


Using PMs to annoy devs about bugs/patches is not a good way to have the issue looked at.

Offline wintermute23

  • Member
  • *
  • Posts: 116
  • What Would Batman Do?
Re: Configurable date format?
« Reply #4 on: March 28, 2010, 09:16:18 AM »
Quote from: JdGordon on March 28, 2010, 05:52:59 AM
in the WPS/SBS its just up to the themr to setup the code to do it.
Except that there's currently no equivalent of %?cf that could be used. The only options I can currently see are that the themer create three different versions, with different date formats; or that the user edit the WPS/SBS to suit their preference. Neither of these is as elegant a solution as making it work the same way as the 12/24hour preference.
Logged
Past: iRiver H320 w/ 32GB CF card mod; iPod 4th Gen 30GB; iPod 5th Gen 30GB

Present: iPod Classic 80GB

Offline JdGordon

  • Member
  • *
  • Posts: 1817
  • Constantly breaking stuff
Re: Configurable date format?
« Reply #5 on: March 28, 2010, 09:32:08 AM »
see the developer mailing list... I've come up with a sweet way to do this, just need time to code it up
Logged


Using PMs to annoy devs about bugs/patches is not a good way to have the issue looked at.

Offline Llorean

  • Member
  • *
  • Posts: 12931
Re: Configurable date format?
« Reply #6 on: March 28, 2010, 09:56:51 AM »
Wouldn't it be simpler to just make it an actual setting, rather than depending on every theme author everywhere to agree on what it should be called, and then depending on anyone who wants to configure it to edit a text file manually to change it?
Logged

Offline JdGordon

  • Member
  • *
  • Posts: 1817
  • Constantly breaking stuff
Re: Configurable date format?
« Reply #7 on: March 28, 2010, 09:58:27 AM »
please dont split the topic... that shold be a reply to the email thread, and no it shouldnt just be a setting because there are at least 3 "standard" date formats, and I could probably come up with more fairly easily. not to mention all the other use cases for this.
Logged


Using PMs to annoy devs about bugs/patches is not a good way to have the issue looked at.

Offline Llorean

  • Member
  • *
  • Posts: 12931
Re: Configurable date format?
« Reply #8 on: March 28, 2010, 10:04:16 AM »
Why does it matter how many configurable date options there are? It's 3 values (year, date, month) and you can only have 6 permutations of it. That means at most we have to offer people a whole six options if we want to cover the whole spectrum.

As for how many digits the year should be, whether the month should be text or a number, etc - these should probably be left up to the theme author since they affect how much space the date takes place on the screen, and thus item positioning.
« Last Edit: March 28, 2010, 10:07:55 AM by Llorean »
Logged

Offline gevaerts

  • Administrator
  • Member
  • *
  • Posts: 1053
Re: Configurable date format?
« Reply #9 on: March 28, 2010, 10:11:42 AM »
Quote from: Llorean on March 28, 2010, 10:04:16 AM
Why does it matter how many configurable date options there are? It's 3 values (year, date, month) and you can only have 6 permutations of it. That means at most we have to offer people a whole six options if we want to cover the whole spectrum.

As for how many digits the year should be, whether the month should be text or a number, etc - these should probably be left up to the theme author since they affect how much space the date takes place on the screen, and thus item positioning.

Not everyone uses the same separator. I think / and - are commin, so you'd have twelve.
Logged

Offline Llorean

  • Member
  • *
  • Posts: 12931
Re: Configurable date format?
« Reply #10 on: March 28, 2010, 10:29:38 AM »
The separator would be a separate setting, I imagine. If it wasn't just decided to be left up to the WPS author (since, I can imagine dates being split across lines with DD/MM on one line, and YYYY on the next, or similar). Or "01 Mar, 1983" which uses two different separators.

I think the existing tags should be usable as they are, and the setting should be related to some sort of new tag that can be used for ordering.
Logged

Offline wintermute23

  • Member
  • *
  • Posts: 116
  • What Would Batman Do?
Re: Configurable date format?
« Reply #11 on: March 28, 2010, 01:29:57 PM »
What I was thinking was that there are three orders in which people expect to see the elements, and in which they don't need to think about how to translate it into a date. Whether 2 digits are used for the year or 4; or whether the month is represented as a full name, an abbreviation or a number; and what the separators are would be reasonable to leave up to the WPS author, as the space it needs to fit into will vary from theme to theme.

Equally, when you choose "12 hour" or "24 hour" time format, you don't get to specify whether or not there should be leading zeros, whether or not seconds should be displayed, or if AM/PM markers should be upper- or lower-case.
Logged
Past: iRiver H320 w/ 32GB CF card mod; iPod 4th Gen 30GB; iPod 5th Gen 30GB

Present: iPod Classic 80GB

  • Print
Pages: [1]
« previous next »
+  Rockbox Technical Forums
|-+  Rockbox Development
| |-+  Feature Ideas
| | |-+  Configurable date format?
 

  • SMF 2.0.17 | SMF © 2019, Simple Machines
  • Rockbox Privacy Policy
  • XHTML
  • RSS
  • WAP2

Page created in 0.084 seconds with 14 queries.