PageSourceSearch

https://www.numerama.com/wp-content/mu-plugins/optimus/build/js/chunks/relativeTime-C033wpEl.js

js numerama.com collected 2026-10-01 09:04:20 UTC 574 bytes, 1 lines download raw bytes

1const o=/^\d{4}-\d{2}-\d{2}[T ]\d{2}:\d{2}(:\d{2})?(\.\d+)?$/;function n(e){return new Date(o.test(e)?`${e.replace(" ","T")}Z`:e)}function a(e){const r=n(e);return Number.isNaN(r.getTime())?e:r.toISOString()}function f(e){if(!e)return null;const r=n(e),t=Math.floor((new Date().getTime()-r.getTime())/1e3);return t<60?"maintenant":t<3600?`il y a ${Math.floor(t/60)} min`:t<86400?`il y a ${Math.floor(t/3600)} h`:t<172800?"hier":t<2592e3?`il y a ${Math.floor(t/86400)} j`:t<31104e3?`il y a ${Math.floor(t/2592e3)} mois`:r.toLocaleDateString("fr-FR")}export{f,n as p,a as t};

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.