datevec output in 24H format

16 Ansichten (letzte 30 Tage)
cl254
cl254 am 22 Apr. 2016
Beantwortet: Star Strider am 22 Apr. 2016
Hi All,
I found out that the output of datevec function is in 12-hour format. How to turn it into 24-hour format?
Thank you.

Antworten (1)

Star Strider
Star Strider am 22 Apr. 2016
You can easily specify the format with the format string you want.
From the documentation:
'HH:MM:SS' 15:45:17
'HH:MM:SS PM' 3:45:17 PM
'HH:MM' 15:45
'HH:MM PM' 3:45 PM

Kategorien

Mehr zu Dates and Time finden Sie in Help Center und File Exchange

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by