@js-sugar/date
Version:
A multi-calendar, tree-shakable, extensible, immutable and lightweight date library for JavaScript
1 lines • 673 B
JavaScript
!function(t,e){"object"==typeof exports&&"object"==typeof module?module.exports=e():"function"==typeof define&&define.amd?define([],e):"object"==typeof exports?exports["jss-date"]=e():t["jss-date"]=e()}(this,(function(){return(this.webpackChunkjss_date=this.webpackChunkjss_date||[]).push([[83,546],{488:(t,e,n)=>{"use strict";function s(t){let e=t.toObject();return t.calendar.daysInMonth(e.year,e.month)}n.r(e),n.d(e,{daysInMonth:()=>s})},102:(t,e,n)=>{"use strict";n.r(e),n.d(e,{setYear:()=>o});var s=n(488);function o(t,e){const n=Math.min(t.day,(0,s.daysInMonth)(t.clone({year:e})));return t.clone({year:e,day:n})}}},t=>{"use strict";var e;return e=102,t(t.s=e)}])}));