当前位置:网站首页>Period to string [repeat] - period to string [duplicate]
Period to string [repeat] - period to string [duplicate]
2022-06-25 06:36:00 【javail】
problem :
This question already has an answer here: This question has been answered here :
I'm using the Joda-Time library with Java. I am using Java Of Joda-Time library .I'm having some difficulty trying to turn a Period object to a string in the format of "x days, x hours, x minutes". I'm trying to Period Object to “x days,x hours,x minutes” There are some difficulties in formatting strings .
These Period objects are first created by adding an amount of seconds to them (they are serialized to XML as seconds and then recreated from them). these Period Objects are first created by adding a certain number of seconds to them ( They are serialized in seconds as XML, Then recreate from them ).If I simply use the getHours() etc. methods in them, all I get is zero and the total amount of seconds with getSeconds. If I just use them getHours() Other methods , So all I get is a zero sum getSeconds Of total Number of seconds .
How can I make Joda calculate the seconds into the respective fields, like days, hours, etc...? How to make Joda Count the seconds in each field , Like heaven , Hours, etc ......?
Solution :
Reference resources : https://stackoom.com/en/question/62kn边栏推荐
- JS to determine whether an element exists in the array (four methods)
- [kicad image] download and installation
- Explain @builder usage
- sin(a-b)=sina*cosb-sinb*cosa的推导过程
- Kotlin reflection -- Notes
- DNS domain name system
- 这些老系统代码,是猪写的么?
- From file system to distributed file system
- Cs4344/ht5010 stereo d/a digital to analog converter
- Global and China financial guarantee marketing strategy and channel dynamic construction report 2022
猜你喜欢

Methods for obtaining some information of equipment
![[speech discrimination] discrimination of speech signals based on MATLAB double threshold method [including Matlab source code 1720]](/img/36/ad86f403b47731670879f01299b416.jpg)
[speech discrimination] discrimination of speech signals based on MATLAB double threshold method [including Matlab source code 1720]

cos(a+b)=cosa*cosb-sina*sinb的推导过程

Sleep quality today 67 points

Guess the size of the number

Cs8126t 3.1w mono ultra low EMI unfiltered class D audio power amplifier IC
![[short time average zero crossing rate] short time average zero crossing rate of speech signal based on MATLAB [including Matlab source code 1721]](/img/4a/304f262c1c08800aa95f9e2d537e4d.jpg)
[short time average zero crossing rate] short time average zero crossing rate of speech signal based on MATLAB [including Matlab source code 1721]

sin(a+b)=sina*cosb+sinb*cosa的推导过程

After five years of software testing in ByteDance, I was dismissed in December to remind my brother of paddling

Monitoring access: how to grant minimum WMI access to the monitoring service account
随机推荐
Optimal Parking
[Suanli network] problems and challenges faced by the development of Suanli network
Explain @builder usage
In depth inventory: 23 vscode plug-in artifacts that improve development efficiency and aesthetics
Analysis of common interview questions in redis
Viewing Chinese science and technology from the Winter Olympics (V): the Internet of things
From file system to distributed file system
Large funds support ecological construction, and Plato farm builds a real meta universe with Dao as its governance
Arm instructions and others
Understand what MSS is
2022 AI trend 8 forecast!
Analysis report on production and sales demand and sales prospect of global and Chinese phosphating solution Market 2022-2028
HCIP Day 16
@The difference between notempty, @notnull and @notblank
@Principle of preauthorize permission control
JD 8 fleet stores search history, deletes history, clears history (not finished)
The "&" character will destroy the data stored in the web The "&" character breaks passwords that are stored in the web config
Introduction to sap ui5 tools
Location object
joda.time获取日期总结