datevec output in 24H format
16 ビュー (過去 30 日間)
古いコメントを表示
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.
0 件のコメント
回答 (1 件)
Star Strider
2016 年 4 月 22 日
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
0 件のコメント
参考
カテゴリ
Help Center および File Exchange で Dates and Time についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!