ubuntu-touch-coreapps team mailing list archive
-
ubuntu-touch-coreapps team
-
Mailing list archive
-
Message #00221
Re: [Calendar] [Clock] i18n.language aware date and time formatting
On Mon, Mar 25, 2013 at 08:21:58PM +0100, Frank Mertens wrote:
> And this allows to write the following to format the current time:
>
> new Date().toLocaleTimeString(Qt.locale(i18n.language), Locale.ShortFormat)
Yikes, that's quite the mouthful for localized date formats! Are we
expecting all app developers to remember this every time?
Is there any way the SDK could include a wrapper around this for easy
re-usage in all our apps?
Follow ups
References