UNPKG

@js-sugar/date

Version:

A multi-calendar, tree-shakable, extensible, immutable and lightweight date library for JavaScript

1 lines 691 B
!function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t():"function"==typeof define&&define.amd?define([],t):"object"==typeof exports?exports["jss-date"]=t():e["jss-date"]=t()}(this,(function(){return(this.webpackChunkjss_date=this.webpackChunkjss_date||[]).push([[835,866],{179:(e,t,s)=>{"use strict";s.r(t),s.d(t,{startOfWeek:()=>o});var n=s(157),r=s(913);function o(e,t){const s=(0,r.weekDay)(e),o=(s<t?7:0)+s-t;return new n.DateTime(e.year,e.month,e.day).subtract({day:o})}},913:(e,t,s)=>{"use strict";function n(e){return e.calendar.weekDay(e.ts+1e3*e.zone.getOffset(e.ts)*60)}s.r(t),s.d(t,{weekDay:()=>n})}},e=>{"use strict";var t;return t=179,e(e.s=t)}])}));