
Software Developer 🇦🇷 | TypeScript | React/Node.js https://teapawt.net/t.co/1rjYL9zdWN
- Tweets98
- Following343
- Followers48
- Likes848

ALT Imagen de Cerebras en formato 16:9 con fondo abstracto naranja y negro. En primer plano aparece una ventana de código estilo macOS usando la SDK de Cerebras para hacer una petición a un modelo de IA, con la frase “¿Cómo es esto gratis?” en el prompt. En la esquina inferior derecha se ve el logo de Cerebras, como diciendo: sí, esto va rápido y encima gratis, sospechosamente bien.

ALT Captura de código sobre Temporal API en Node.js 25.10 y 26. Muestra cómo crear una fecha con Temporal.PlainDate.from("2026-04-28"), sumarle 7 días con .add({ days: 7 }), comprobar que la fecha original no cambia y calcular la diferencia con .until(nextWeek).days, que devuelve 7. Date mirando desde la esquina con cara de “por fin me jubilo”.

ALT const DATE_UNITS = { // in seconds year: 31536000, month: 2629800, day: 86400, hour: 3600, minute: 60, second: 1 } const languageCode = 'en' // English const rtf = new Intl.RelativeTimeFormat( languageCode, { numeric: 'auto' } )
![export const getRelativeTime = (timestamp) => { const from = new Date(timestamp).getTime() const now = new Date().getTime() const elapsed = (from - now) / 1000 for (const unit in DATE_UNITS) { if (elapsed > DATE_UNITS[unit]) { return rtf.format( Math.floor(elapsed / DATE_UNITS[unit]), unit ) } } // if less than one second, then is now return rtf.format(0, 'second') }](https://pbs.twimg.com/media/GmFwEyzXcAMZVTA.jpg?name=small&format=webp)
ALT export const getRelativeTime = (timestamp) => { const from = new Date(timestamp).getTime() const now = new Date().getTime() const elapsed = (from - now) / 1000 for (const unit in DATE_UNITS) { if (elapsed > DATE_UNITS[unit]) { return rtf.format( Math.floor(elapsed / DATE_UNITS[unit]), unit ) } } // if less than one second, then is now return rtf.format(0, 'second') }




















