Julian time and seconds

2 visualizaciones (últimos 30 días)
David Craig
David Craig el 20 de Oct. de 2011
Respondida: Peter Perkins el 21 de Sept. de 2017
Hi, I'm working with two time series with the time specified in Julian time. I need to work out the difference between the start time in each data set. Anyone know how?? Thanks D
  1 comentario
Jan
Jan el 20 de Oct. de 2011
Please post the format of your inputs and the wanted output. Are you talking of a DOUBLE vector or a cell string?

Iniciar sesión para comentar.

Respuestas (1)

Peter Perkins
Peter Perkins el 21 de Sept. de 2017
>> d1 = juliandate(datetime('today'))
d1 =
2458017.5
>> d2 = d1 + 1234
d2 =
2459251.5
>> between(datetime(d1,'ConvertFrom','juliandate'), datetime(d2,'ConvertFrom','juliandate'))
ans =
calendarDuration
3y 4mo 16d
>> between(datetime(d1,'ConvertFrom','juliandate'), datetime(d2,'ConvertFrom','juliandate'),'days')
ans =
calendarDuration
1234d

Categorías

Más información sobre Dates and Time 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