Reading times using KLocale::readTime()

Michael Leupold lemma at confuego.org
Fri Jul 17 11:20:06 BST 2009


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Michael Leupold wrote:
> Now I'm trying to perform a proper fixup() including adding seconds to a
> time in locale format that has been entered without (eg. user enteres
> 17:30 and fixup() produces 17:30:30). My main problem is that I'd like to
> use KLocale::readTime() but it doesn't read as much as I'd like it to, eg.
> for 12h time it will read "5:30 pm" but not "5:30pm".

It just appeared to me that another issue is that while formatTime() can 
strip am/pm, readTime isn't able to read without it.

Regards,
Michael
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.6 (GNU/Linux)

iD8DBQFKYFBYlfpzINIAlVsRAplGAKCDSObBBBUFik+iXtSE1t1ICkXPgwCgjDlJ
JJ7PLYM/BbXwj1VdScWBQiM=
=79FV
-----END PGP SIGNATURE-----






More information about the kde-core-devel mailing list