Sha256: 8ef072d589c441977d1fe4c699a09f6a5383310d239b8516c098ef3f38faf9c1

Contents?: true

Size: 1.44 KB

Versions: 9

Compression:

Stored size: 1.44 KB

Contents

/*global define*/
define(['Core/freezeObject', 'Core/JulianDate', 'Core/TimeInterval'], function(
        freezeObject,
        JulianDate,
        TimeInterval) {
    "use strict";

    var MINIMUM_VALUE = freezeObject(JulianDate.fromIso8601('0000-01-01T00:00:00Z'));
    var MAXIMUM_VALUE = freezeObject(JulianDate.fromIso8601('9999-12-31T24:00:00Z'));
    var MAXIMUM_INTERVAL = freezeObject(new TimeInterval(MINIMUM_VALUE, MAXIMUM_VALUE, true, true));

    /**
     * Constants related to ISO8601 support.
     *
     * @exports Iso8601
     *
     * @see <a href='http://en.wikipedia.org/wiki/ISO_8601'>ISO 8601 on Wikipedia</a>.
     * @see JulianDate
     * @see TimeInterval
     */
    var Iso8601 = {
        /**
         * A {@link JulianDate} representing the earliest time representable by an ISO8601 date.
         * This is equivalent to the date string '0000-01-01T00:00:00Z'
         */
        MINIMUM_VALUE : MINIMUM_VALUE,

        /**
         * A {@link JulianDate} representing the latest time representable by an ISO8601 date.
         * This is equivalent to the date string '9999-12-31T24:00:00Z'
         */
        MAXIMUM_VALUE : MAXIMUM_VALUE,

        /**
         * A {@link TimeInterval} representing the largest interval representable by an ISO8601 interval.
         * This is equivalent to the interval string '0000-01-01T00:00:00Z/9999-12-31T24:00:00Z'
         */
        MAXIMUM_INTERVAL : MAXIMUM_INTERVAL
    };

    return Iso8601;
});

Version data entries

9 entries across 9 versions & 1 rubygems

Version Path
cesium-0.25.0 app/assets/javascripts/Core/Iso8601.js
cesium-0.24.1 app/assets/javascripts/Core/Iso8601.js
cesium-0.24.0 app/assets/javascripts/Core/Iso8601.js
cesium-0.23.0 app/assets/javascripts/Core/Iso8601.js
cesium-0.22.0 app/assets/javascripts/Core/Iso8601.js
cesium-0.21.1 app/assets/javascripts/Core/Iso8601.js
cesium-0.21 app/assets/javascripts/Core/Iso8601.js
cesium-0.20.0 app/assets/javascripts/Core/Iso8601.js
cesium-0.19.0 app/assets/javascripts/Core/Iso8601.js