bilby.gw.time.n_leap_seconds
- bilby.gw.time.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
- bilby.gw.time.n_leap_seconds(gps_time: numpy.ndarray | numpy.number | float | int)
- bilby.gw.time.n_leap_seconds(gps_time: float | int | numpy.number)
- bilby.gw.time.n_leap_seconds(date: jax.Array)
- Find the number of leap seconds required for the specified date.
- bilby.gw.time.n_leap_seconds(date: torch.Tensor) torch.Tensor
- Find the number of leap seconds required for the specified date.