LeapSecond.js 797 B

123456789101112131415161718192021222324
  1. /**
  2. * Describes a single leap second, which is constructed from a {@link JulianDate} and a
  3. * numerical offset representing the number of seconds TAI is ahead of the UTC time standard.
  4. * @alias LeapSecond
  5. * @constructor
  6. *
  7. * @param {JulianDate} [date] A Julian date representing the time of the leap second.
  8. * @param {Number} [offset] The cumulative number of seconds that TAI is ahead of UTC at the provided date.
  9. */
  10. function LeapSecond(date, offset) {
  11. /**
  12. * Gets or sets the date at which this leap second occurs.
  13. * @type {JulianDate}
  14. */
  15. this.julianDate = date;
  16. /**
  17. * Gets or sets the cumulative number of seconds between the UTC and TAI time standards at the time
  18. * of this leap second.
  19. * @type {Number}
  20. */
  21. this.offset = offset;
  22. }
  23. export default LeapSecond;