This article is a mirror article of machine translation, please click here to jump to the original article.

View: 20276|Reply: 0

[Source] The difference between time formatting hh:mm:ss and HH:mm:ss

[Copy link]
Posted on 5/18/2017 1:22:09 PM | | |

hh:mm:ss  

Format the string in a 12-hour format

If the time is at 00:00:00-12:59:59, the returned string is fine

If the time is 13:00:00-23:59:59, the returned string is the value after the actual time -12 hours, which means 12 hours less than the real time.

For example: the formatted string at 14:00:00 is "2:00:00"



HH:mm:ss

Format the string in a 24-hour format

When the time is in any interval, the returned strings are normal.




Previous:Detailed explanation of various parameters of HTTP protocol
Next:No object named 'MySql-5.7.17' is defined : Cannot find definition for object...
Disclaimer:
All software, programming materials or articles published by Code Farmer Network are only for learning and research purposes; The above content shall not be used for commercial or illegal purposes, otherwise, users shall bear all consequences. The information on this site comes from the Internet, and copyright disputes have nothing to do with this site. You must completely delete the above content from your computer within 24 hours of downloading. If you like the program, please support genuine software, purchase registration, and get better genuine services. If there is any infringement, please contact us by email.

Mail To:help@itsvse.com