TimeStandard.js 955 B

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