Java time conversion

This example is enough to illustrate how data of date type is converted to long type, and how long type date is converted to date, especially for third-party interfaces. In addition to transmitting signatures, many interface parameters also have time stamps. Time stamps are usually expressed by the time of long type (here refers to converting date to long type). Security is the main consideration.

The above are the commonly used time type conversions. The commonly used signature is the long timestamp, which is used more for payment. For security reasons.

As for string type, the creation time and update time are commonly used.

The content of this article comes from the network collection of netizens. It is used as a learning reference. The copyright belongs to the original author.
THE END
分享
二维码
< <上一篇
下一篇>>