import r from"moment-timezone";var n=function(n,o){return r.unix(n).format(o)},o=function(r){return n(r,"M/D/YYYY h:mm a")},u=function(r){return r-r.clone().hour(0).minute(0).second(0).millisecond(0)},t=function(n,o){var t=r.unix(n),e=r.unix(o),i=r.duration(6,"hours"),a=r.duration(12,"hours"),h=r.duration(18,"hours"),m=e-u(e),s=t-u(t),c=(r.duration(m-s).asDays()+1)*a;return t.hours()>17?c-=a:t.hours()>=6&&(c-=u(t)-i),e.hours()<=5?c-=a:e.hours()<18&&(c-=h-u(e)),Math.round(c/1e3)},e=function(r){var n=new Date(r).getTime();return Math.floor(n/1e3)};export{e as convertDateStringToUnixTimestamp,o as formatLastDataUpdate,n as formatTimestamp,t as getDayTimeDuration,u as getDurationFromDayStart};
//# sourceMappingURL=time.js.map
