cost 146 ms
jodaTime PeriodFormatter无法正确格式化 - jodaTime PeriodFormatter not formatting correctly

我有这个PeriodFormatter: 我想输入几秒钟,并获得x天,x小时,x分钟。...执行此操作时,我得到一个空字符串。 如果我将“ appendSeconds()”添加到格式化程序创建中,则返回的秒数将与发送的返回值相同。 我需要转换,而不仅是金额,而且我对秒数不感兴趣, ...

乔达时间如何计算还剩多少时间? - Joda Time how to calculate how much time left?

在我的代码的这一部分中,我希望Joda Time计算并显示到下一个生日还有多少时间。 所以应该在生日那天改变 x这里是年,m110,d110,h120,min120-月,日,小时和分钟。 我应该写什么而不是“ x”,这样它可以算出每年还剩下多少时间,而不是一次。 还有一个问题。 ...

Java JodaTime:“ 123”应为(长)123。如何在没有“ ms”作为结尾的情况下做到这一点:例如“ 10ms”? - Java JodaTime: “123” should be (long) 123. How can I do that without having “ms” for example at the end: “10ms”?

如何从Java-JodaTime格式化PeriodFormatter以处理类似以下的字符串: “ 10s” =(长)10000; <-我解决了。 “ 10ms” =(长)10。 “ 10” =长10。<-仅这是我的问题! 我可以通过此链接使用Joda Time处理 ...

Joda时间-无法以分钟为单位来计算月/年 - Joda time - Not able to calculate months / years from Period in minutes

我在Android Studio项目中使用joda-time-2.5。 我无法解决我缺少的能够正确格式化年份和/或月份的字符串的问题。 期间可以正确计算-但不会超出“周”。 1000000分钟的格式正确设置为“ 99周,1天,10小时+ 40分钟”。 但不是月/年格式,例如。 ...

使用Joda-Time PeriodFormatter显示“负”时间段 - Displaying “negative” time periods with Joda-Time PeriodFormatter

我在项目中使用joda-time(1.6.2),我正在做的一件事是获得预测时间和实际时间之间的差异。 有时这种差异是积极的,有时是消极的。 虽然适当的方法可能是使用Duration而不是Period ,但使用PeriodFormatter显示结果会引发一个关于PeriodFormatterB ...


排序:
质量:
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM