更新时间:2023-11-29 12:50:04
你读过文档?
它声明
H, HH 24 hour time
h, or hh 12 hour time (use in conjunction with a or A)
因此,将您的时间表示为 HH
将为您提供24小时格式, hh
将给出12h格式。
Thus, stating your time as HH
will give you 24h format, and hh
will give 12h format.