为EN加载时区名称 [英] Loaded time zone names for en

查看:204
本文介绍了为EN加载时区名称的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有这样的事情

I/global  ( 3622): Loaded time zone names for en in 355ms.
I/global  ( 3622): Loaded time zone names for en in 307ms.
I/global  ( 3622): Loaded time zone names for en in 309ms.
I/global  ( 3622): Loaded time zone names for en in 310ms.
I/global  ( 3622): Loaded time zone names for en in 324ms.

和我没有任何想法,该日志从何而来。

and I do not have any idea where this log comes from.

我正在做关于这一主题的一些研究,我想它来自

I was doing some research on this topic and I guess it comes from

new Date();

但我不知道。

我需要建议我应该怎么做,以加快东西。我的应用程序,在这一刻非常缓慢和延迟来正是在这五线上面大约需要一秒钟,半只读取时间:(

I need advice what should I do to speed the things up. I have application that is very slow at this moment and the delay comes exactly at this five lines above it takes around a second and a half just to read the time :(.

如果您的建议是把一个全局变量和时间去阅读那些刚抱歉,我不能这样做:(我需要我的职务时间在那一刻(这是不可能读取时间刚好的: ()

if you advice is to put a global variable and to read the time just ones sorry I can't do that :(. I need the time in my functions at that moment (it is impossible to read the time just ones :( ).

推荐答案

我发现我的问题

问题是,有没有办法,现在来规避这个问题,由于SimpleDateFormat的API的设计。只有更快的手机可能只需服用较少的时间来收集这些字符串解决这个问题。

The problem is that there's no way right now to circumvent this issue due to the design of the SimpleDateFormat api. Only faster phones might fix this by just taking less time to collect those strings.

所以我希望能有与SKD的Andr​​oid的下一个版本的时区没有问题,而在较新的手机。

So I hope there will be no problem with the time zone in the next versions of android skd, and in the newer phones.

直到然后用这条线仔细

 SimpleDateFormat sdf = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss.SSS Z");

原因延迟来自那里

cause the delay comes from there

如果您使用的格式,没有时间带它完美的作品(无延迟)

if you use formatting with no time zone it works perfect (with no delay)

 SimpleDateFormat sdf = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss.SSS");

这篇关于为EN加载时区名称的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆