Calculation of New Date using a Reference Date and Time Elapsed
2 visualizaciones (últimos 30 días)
Mostrar comentarios más antiguos
Srikanth
el 28 de Nov. de 2014
Comentada: Titus Edelhofer
el 28 de Nov. de 2014
I want to calculate the new date using a reference date and time elapsed. Let's say
Reference Date: 2014-07-24 15:32:45 Time Elapsed: 7852 seconds
New Date: Reference Date + Time Elapsed
How to do the same in R2014a
Thanks
Srikanth
0 comentarios
Respuesta aceptada
Mischa Kim
el 28 de Nov. de 2014
Srikanth, you could use the addtodate function
new_date = datestr(addtodate(datenum('2014-07-24 15:32:45'),7852,'sec'))
2 comentarios
Titus Edelhofer
el 28 de Nov. de 2014
Hi Srikanth,
if it works, fine. Please mark the question then as answered ...
Thanks,
Titus
Más respuestas (0)
Ver también
Categorías
Más información sobre Install Products en Help Center y File Exchange.
Productos
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!