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:

Rockbox Ports are now being developed for various digital audio players!

+  Rockbox Technical Forums
|-+  Rockbox General
| |-+  Rockbox General Discussion
| | |-+  Date and time tags
« previous next »
  • Print
Pages: [1]

Author Topic: Date and time tags  (Read 2033 times)

Offline Terry The Great

  • Member
  • *
  • Posts: 6
Date and time tags
« on: January 10, 2014, 06:11:41 PM »
This week AlexParker and a few months ago MichaelGiacomelli posted a description in the Wiki of all the tags to use for the WPS display. I ran some tests on the time and date tags they listed and I got these inconsistent results:

Tag     Description of output in the manual             The actual output that is displayed

%ce     Zero padded day of month from 1 to 31   Space padded to the left for digits 1 to 9

%ck     Hour from 0 to 23 (24 hour format)      Space padded to the left for digits 1 to 9

%cl     Hour from 1 to 12 (am/pm format)              Space padded to the left for digits 1 to 9

What is the reason for the space padding? If it were for alignment purposes then the user could simply use the existing alignment tags (%al, %ar, %ac). Or is it a bug? I would prefer that there not be any space padding.

Please respond to terrythegreat-1@hotmail.com
« Last Edit: January 10, 2014, 09:27:30 PM by saratoga »
Logged

Offline chrisjj

  • Member
  • *
  • Posts: 273
Re: Date and time tags (this message is for AlexParker and MichaelGiacomelli)
« Reply #1 on: January 10, 2014, 07:03:48 PM »
FYI: http://www.rockbox.org/tracker/task/7007
Logged

Offline saratoga

  • Developer
  • Member
  • *
  • Posts: 8974
Re: Date and time tags
« Reply #2 on: January 10, 2014, 09:29:22 PM »
Stop addressing questions to random people on the forums.  I have no idea about the WPS tags, and I certainly can't answer your question, so there is no reason to ask me specifically.  Just ask your question, and if anyone knows, they'll answer.   
Logged

Offline toehser

  • Member
  • *
  • Posts: 107
Re: Date and time tags
« Reply #3 on: January 11, 2014, 08:32:55 AM »
I guess a workaround with %ss and a conditional could work for now.
Logged

Offline chrisjj

  • Member
  • *
  • Posts: 273
Re: Date and time tags
« Reply #4 on: January 11, 2014, 09:11:15 AM »
Quote from: saratoga on January 10, 2014, 09:29:22 PM
Stop addressing questions to random people on the forums.

Saratoga, perhaps you missed that the addressees are not random people. As the post says, they are the authors of the relevant info.
Logged

Offline AlexP

  • Global Moderator
  • Member
  • *
  • Posts: 3688
  • ex-BigBambi
Re: Date and time tags
« Reply #5 on: January 11, 2014, 09:14:22 AM »
Quote from: chrisjj on January 11, 2014, 09:11:15 AM
Saratoga, perhaps you missed that the addressees are not random people. As the post says, they are the authors of the relevant info.

Wrong, I haven't added or edited any information in the wiki in months.

Also, I'm definately not replying to a random email address, this is a forum.
Logged
H140, F60, S120, e260, c240, Clip, Fuze v2, Connect, MP170, Meizu M3, Nano 1G, Android

Offline chrisjj

  • Member
  • *
  • Posts: 273
Re: Date and time tags
« Reply #6 on: January 11, 2014, 09:22:47 AM »
> Wrong, I haven't added or edited any information in the wiki in months.

So he made simple a mistake.
Logged

Offline saratoga

  • Developer
  • Member
  • *
  • Posts: 8974
Re: Date and time tags
« Reply #7 on: January 11, 2014, 12:10:05 PM »
Quote from: chrisjj on January 11, 2014, 09:22:47 AM
> Wrong, I haven't added or edited any information in the wiki in months.

So he made simple a mistake.

I've edited a few random posts addressed to me. I think he's under the impression that I am responsible for the entire Rockbox project rather than just the things I've worked on.
Logged

Offline AlexP

  • Global Moderator
  • Member
  • *
  • Posts: 3688
  • ex-BigBambi
Re: Date and time tags
« Reply #8 on: January 11, 2014, 04:23:02 PM »
Quote from: chrisjj on January 11, 2014, 09:22:47 AM
> Wrong, I haven't added or edited any information in the wiki in months.

So he made simple a mistake.

Which when saratoga pointed out you tried to make out saratoga was wrong. Please think before posting.  This is the last word on the subject, if this thread doesn't get back on topic I'll lock it.
Logged
H140, F60, S120, e260, c240, Clip, Fuze v2, Connect, MP170, Meizu M3, Nano 1G, Android

Offline JdGordon

  • Member
  • *
  • Posts: 1817
  • Constantly breaking stuff
Re: Date and time tags
« Reply #9 on: January 14, 2014, 12:39:53 AM »
The reasoning for the spacing is because these tags are MUCH older than the current skinning abilities - namely viewports. So the only way you used to be able to align things was with the %a* tags. Having it a known width (for a given font) meant themers could make it look nice.

Is that needed now? probably not. Are we going to change it? Nope, its a minor detail and would break tags.
This is maybe a candidate for a "skin version" tag which we've (Me and Saint) talked about before where a tag at the start of the skin file would potentially change the behaviour of certain tags while not breaking backwaards compatibility.
Logged


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

Offline wodz

  • Developer
  • Member
  • *
  • Posts: 390
Re: Date and time tags
« Reply #10 on: January 14, 2014, 04:40:06 AM »
Wouldn't it be better to simply reject skin designed for incompatible skin engine version instead of dragging all legacy stuff in skin engine?
Logged

Offline JdGordon

  • Member
  • *
  • Posts: 1817
  • Constantly breaking stuff
Re: Date and time tags
« Reply #11 on: January 14, 2014, 06:07:35 AM »
well sometimes the change is tiny and supporting both (for some reasonable amount of time) would be pretty cheap.
Logged


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

  • Print
Pages: [1]
« previous next »
+  Rockbox Technical Forums
|-+  Rockbox General
| |-+  Rockbox General Discussion
| | |-+  Date and time tags
 

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

Page created in 0.108 seconds with 15 queries.