PageSourceSearch

https://roadmap.sh/assets/date-CAat6foK.js

js roadmap.sh collected 2026-10-02 02:34:32 UTC 1,016 bytes, 1 lines download raw bytes

1import{D as r}from"./luxon-BDx6lZXm.js";function c(t,i=!1){if(!Intl?.RelativeTimeFormat)return t.toString();const a=new Intl.RelativeTimeFormat("en",{numeric:"auto",style:"narrow"}),u=new Date,s=new Date(t),o=u.getTime()-s.getTime(),m=Math.round(o/(1e3*60)),f=Math.round(o/(1e3*60*60)),n=Math.round(o/(1e3*60*60*24));let e;return m<60?e=a.format(-m,"minute"):f<24?e=a.format(-f,"hour"):n<7?i?e=r.fromJSDate(new Date(t)).toFormat("ccc h:mm a"):e=a.format(-n,"day"):n<30?e=a.format(-Math.round(n/7),"week"):n<365?e=a.format(-Math.round(n/30),"month"):i?e=r.fromJSDate(new Date(t)).toFormat("MMM d, yyyy h:mm a"):e=r.fromJSDate(new Date(t)).toFormat("MMM d, yyyy"),e==="this minute"?"just now":e}function D(t){return new Date(t).toLocaleDateString("en-US",{month:"long",year:"numeric"})}function y(t){return new Date(t).toLocaleDateString("en-US",{year:"numeric",month:"long",day:"numeric"})}function h(t){return new Date(t).toLocaleDateString("en-US",{month:"long",day:"numeric"})}export{D as a,h as b,y as f,c as g};

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.