datetime

Methods

Method Reference: datetime.std

datetime: S = std (A)
datetime: S = std (A, w)
datetime: S = std (A, w, dim)
datetime: S = std (A, w, 'all')
datetime: S = std (…, nanflag)
datetime: [S, M] = std (…)

Standard deviation of a datetime array.

S = std (A) returns the standard deviation of the absolute instants of A as a duration. The weight w selects the normalisation (0, the default, divides by N-1; 1 divides by N), and a dim or 'all' argument selects the dimension(s). Missing-value handling matches mean.

[S, M] = std (…) also returns the mean M as a datetime.

Source Code: datetime

std measures the spread of the datetimes and returns a duration.

 t = datetime (2024, 3, [1, 9, 20])
t =
  1x3 datetime array

    01-Mar-2024    09-Mar-2024    20-Mar-2024
 std (t)
ans =
  duration

   228:56:43