svelte-time
svelte-time copied to clipboard
Svelte component and action to format a timestamp using day.js
I want to use the relative time, 'a minute ago', but after a couple of hours, I want to switch it to say `04:40 am'.
Why its Different from the actual data? how to fix it? the screen like bellow: ```svelte {#if item.PreparedAt} Show: Actual: {item.PreparedAt} {/if} ``` 
I'm using the latest release of Sveltekit and I've installed svelte-time as a dev dependency. I'm getting this error at the most basic usage of the module: `` ``` 500...
I installed Svelte with bun, it uses recent versions: ``` "@sveltejs/adapter-auto": "^2.1.1", "@sveltejs/kit": "^1.27.3", "flowbite-svelte": "^0.44.19", "svelte": "^4.2.2", "svelte-check": "^3.5.2", "svelte-time": "^0.8.0", "vite": "^4.5.0" ``` It runs in a lxd...
Hey In my i18n supported website I have a store called `$locale` and it changes the value from `"en"` (English) to `"he"` (Hebrew) and more. I want that whenever a...
Somewhat like this: ```ts import { readable } from "svelte/store" const NOW = readable(new Date(), (set) => { const timer = setInterval(() => set(new Date()), 1000) return () => clearInterval(timer)...
Hello, I wonder if you can help with this. Here are snippets of my code ``` import Time, { svelteTime } from "svelte-time"; import { dayjs } from "svelte-time"; .........
``` import { svelteTime, dayjs } from 'svelte-time' import localizedFormat from 'dayjs/esm/plugin/localizedFormat' dayjs.extend(localizedFormat) import timezone from 'dayjs/esm/plugin/timezone' dayjs.extend(timezone) ``` ``` /work/app/frontend/javascripts/components/date_time.svelte:6:16 Error: Argument of type 'PluginFunc' is not assignable to...
There are many cases where you want relative time, but not the word "ago". For instance: In stage for 18 hours Would be nice to be able to toggle off...
When using _svelte-time_ as a dependency in my project and [compiling in runes mode](https://svelte-5-preview.vercel.app/docs/runes#how-to-opt-in) using Svelte 5: _svelte.config.js_ ```javascript export default { compilerOptions: { runes: true } }; ``` I...