You may already be aware of this problem, but I didn't find how to solve it.
I have an output with hourly intervals written in days since 1979-01-01 00:00:00.
The first time step is 0. The second is 0.041666666667.
I have noticed that num2date does not give the same results when reading the second time step depending on the calendar used. It sometimes give 1979-01-01 01:00:00 (which is what we want), and sometimes 1979-01-01 00:59:59 (see below).
How can we fix it so num2date would give the correct result (01:00:00. 02:00:00, etc.) whatever calendar is used?
Good afternoon,
You may already be aware of this problem, but I didn't find how to solve it. I have an output with hourly intervals written in days since 1979-01-01 00:00:00. The first time step is 0. The second is 0.041666666667. I have noticed that num2date does not give the same results when reading the second time step depending on the calendar used. It sometimes give 1979-01-01 01:00:00 (which is what we want), and sometimes 1979-01-01 00:59:59 (see below). How can we fix it so num2date would give the correct result (01:00:00. 02:00:00, etc.) whatever calendar is used?
Thank you for your help, Marie-Estelle