Timestamp Formatting (Datenum Limitation?)

1 次查看(过去 30 天)
If I want a timestmap of the format string such that 'mm/dd/yy HH:MM:SS PM' is my format into matlab's numerical number,
datenum(01/01/13,'mm/dd/yy HH:MM:SS PM')
only displays the general number associated with the date and not the time. How do I correct this to get the full number with decimals indicating the time as well?

回答(1 个)

Andrei Bobrov
Andrei Bobrov 2013-6-19
编辑:Andrei Bobrov 2013-6-19
datenum('01/01/13 03:12:45 PM','mm/dd/yy HH:MM:SS PM');
ADD
datenum({'01/01/13 03:12:45 PM','01/02/13 06:12:45 AM'},'mm/dd/yy HH:MM:SS PM')
  2 个评论
Kwen
Kwen 2013-6-19
Sorry that was a typo in my question, but not in my code. This runs for this specific date only, but errors on a vector.

请先登录,再进行评论。

类别

Help CenterFile Exchange 中查找有关 Dates and Time 的更多信息

标签

Community Treasure Hunt

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

Start Hunting!

Translated by