All Downloads are FREE. Search and download functionalities are using the official Maven repository.

META-INF.resources.bower_components.globalize.src.date.day-of-year.js Maven / Gradle / Ivy

There is a newer version: 1.2.2.1-jre17
Show newest version
define([
    "./distance-in-days",
    "./start-of"
], function (dateDistanceInDays, dateStartOf) {

    /**
     * dayOfYear
     *
     * Return the distance in days of the date to the begin of the year [0-d].
     */
    return function (date) {
        return Math.floor(dateDistanceInDays(dateStartOf(date, "year"), date));
    };

});




© 2015 - 2025 Weber Informatics LLC | Privacy Policy