Re: Abot locale time

2013-07-10 Thread Leonardo Giordani
Thanks, it is a good starting point. After your code I have just to split minutes and hours. Thank you Leo Leonardo Giordani Author of The Digital Cat My profile on About.me 2013/7/10 Thomas Lübking > On Mittwoch, 10. Juli 201

Re: Abot locale time

2013-07-10 Thread Leonardo Giordani
Thank you for the hints. About locale database: I can figure it is not a simple piece of software. Regards Leo Leonardo Giordani Author of The Digital Cat My profile on About.me 2013/7/10 Thiago Macieira > On quarta-feira, 10

Re: Abot locale time

2013-07-10 Thread Thomas Lübking
On Mittwoch, 10. Juli 2013 18:29:41 CEST, Leonardo Giordani wrote: Is it possible to get the locale time splitted in its parts (hour, minutes, seconds, AM/PM)? is along KLocale::TimeFormatOption KLocale::formatLocaleTime(QTime, KLocale::TimeWithoutSeconds|KLocale::TimeWithoutAmPm) sufficient

Re: Abot locale time

2013-07-10 Thread Thiago Macieira
On quarta-feira, 10 de julho de 2013 19.09.32, Leonardo Giordani wrote: > Ok, I can easily get the format string from KLocale::timeFormat(). > > I have however to assume the user splitted the elements with, say, > semicolons. > If the user formats the time as "h:HH - m:MM" (ok, it is fuzzy =) ) th

Re: Abot locale time

2013-07-10 Thread Leonardo Giordani
Ok, I can easily get the format string from KLocale::timeFormat(). I have however to assume the user splitted the elements with, say, semicolons. If the user formats the time as "h:HH - m:MM" (ok, it is fuzzy =) ) this does not work. It is a pity that the locale database does not contain this inf

Re: Abot locale time

2013-07-10 Thread Thiago Macieira
On quarta-feira, 10 de julho de 2013 18.29.41, Leonardo Giordani wrote: > Working on a time applet I found KLocale::formatLocaleTime() which can > return the time as the user specified in the locale configuration. > > I cannot realize, however, how I can get only one part of the locale > formatted

Abot locale time

2013-07-10 Thread Leonardo Giordani
Working on a time applet I found KLocale::formatLocaleTime() which can return the time as the user specified in the locale configuration. I cannot realize, however, how I can get only one part of the locale formatted time. Say for example that I want to show only the hour, which can either be 1-12