datevec datenum conversion problem

2 visualizaciones (últimos 30 días)
faber fenix
faber fenix el 2 de Jun. de 2015
Comentada: Image Analyst el 5 de Jun. de 2015
On my machine, using Matlab R2014a, datevec(datenum(x)) produces result different from x:
>> datevec(datenum([2007, 4, 1, 30, 0, 0]))
ans =
2007 4 2 6 0 0
Is this a bug, or am I doing something wrong?

Respuesta aceptada

Mischa Kim
Mischa Kim el 2 de Jun. de 2015
Faber, looks good to me. 30h = 24h + 6h, in other words, the date corresponds to April 2, 6:00 AM.
  1 comentario
Image Analyst
Image Analyst el 5 de Jun. de 2015

faber's "Answer" moved here:

Great, thanks!

Iniciar sesión para comentar.

Más respuestas (0)

Categorías

Más información sobre Time Series Objects en Help Center y File Exchange.

Etiquetas

Community Treasure Hunt

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

Start Hunting!

Translated by