datetime default format by version and operating system
4 Ansichten (letzte 30 Tage)
Ältere Kommentare anzeigen
Rich006
am 10 Mai 2023
Kommentiert: Rich006
am 10 Mai 2023
On my Mac running R2022a, if I enter datetime('now') without specifying any format, I get 2023130090948. That is, it's 2023, the 130th day, at 9:09:48 AM. But on Windows running R2020b, the same input gives 10-May-2023 09:09:48. Is this difference due to the different operating systems, or different Matlab versions, or what? Where is the documentation?
0 Kommentare
Akzeptierte Antwort
Steven Lord
am 10 Mai 2023
Can you confirm that you're using the datetime function included as part of MATLAB and not one that you downloaded?
which -all datetime
Weitere Antworten (0)
Siehe auch
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!