n_leap_seconds

n_leap_seconds(gps_time, leap_seconds)

Calculate the number of leap seconds that have occurred up to a given GPS time.

Parameters:
gps_timefloat | np.ndarray | int

GPS time in seconds.

leap_secondsarray_like

GPS time of leap seconds.

Returns:
float

Number of leap seconds

n_leap_seconds(gps_time: numpy.ndarray | numpy.number | float | int)
n_leap_seconds(gps_time: float | int | numpy.number)
n_leap_seconds(date: jax.Array)
Find the number of leap seconds required for the specified date.
n_leap_seconds(date: torch.Tensor) → torch.Tensor
Find the number of leap seconds required for the specified date.