TimeStandard.js 753 B

123456789101112131415161718192021222324252627282930
  1. /**
  2. * Provides the type of time standards which JulianDate can take as input.
  3. *
  4. * @enum {number}
  5. *
  6. * @see JulianDate
  7. */
  8. const TimeStandard = {
  9. /**
  10. * Represents the coordinated Universal Time (UTC) time standard.
  11. *
  12. * UTC is related to TAI according to the relationship
  13. * <code>UTC = TAI - deltaT</code> where <code>deltaT</code> is the number of leap
  14. * seconds which have been introduced as of the time in TAI.
  15. *
  16. * @type {number}
  17. * @constant
  18. */
  19. UTC: 0,
  20. /**
  21. * Represents the International Atomic Time (TAI) time standard.
  22. * TAI is the principal time standard to which the other time standards are related.
  23. *
  24. * @type {number}
  25. * @constant
  26. */
  27. TAI: 1,
  28. };
  29. export default Object.freeze(TimeStandard);