datenum does not give monotonically increasing result

2 views (last 30 days)
datenum('12-5-2010 23:55:00','dd-MM-yyyy HH:mm:ss')
ans =
7.3579e+05
datenum('13-5-2010 00:00:00','dd-MM-yyyy HH:mm:ss')
ans =
7.3412e+05
How comes that 12-5 < 13-5????
Anyone can help me?
Thanks in advance.

Answers (1)

Cedric
Cedric on 12 Mar 2013
Edited: Cedric on 12 Mar 2013
Your permuted minutes (MM) and month (mm) identifiers.

Categories

Find more on Dates and Time in Help Center and File Exchange

Tags

Community Treasure Hunt

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

Start Hunting!