spacetime
spacetime copied to clipboard
A lightweight javascript timezone library
I cant seem to find a way to do this, so I assume that currently it is impossible? If so, it would be great to have this as a function....
Apologies if this is effectively a duplicate of other outstanding timezone-related issues. At the moment, if we ask what the UTC equivalent of `2023-03-26 17:00` in `Europe/London` is, Spacetime tells...
The construction of a Spacetime instance seems to be affected by the system timezone, even when a specific timezone is supplied as the second parameter: ```js // system timezone set...
Yesterday, the clocks went forward 1 hour in the UK. The tomorrow function now moves to the Europe/London timezone incorrectly: - `spacetime.today().goto("Europe/London").d` returns 2022-03-28T**00**:00:00.000Z (correct) - `spacetime.tomorrow().goto("Europe/London").d` returns 2022-03-29T**01**:00:00.000Z (incorrect)...
## Information **Spacetime Version:** v6.8.0 **Example:** https://codesandbox.io/s/inspiring-voice-qnons?file=/src/App.vue ## Browsers Tested - Firefox - Safari - Chrome Hi, I'm experiencing a problem with timestamps that are near the DST boundary and...
Title pretty much says it all. If I call `spacetime.whereIts('4pm')` it returns: ``` [ 'america/lima', 'america/rio_branco', 'brazil/acre', 'america/bahia_banderas', 'america/merida', 'america/mexico_city', 'america/monterrey', 'mexico/general', 'america/north_dakota', 'america/chicago', 'america/knox_in', 'america/matamoros', 'america/menominee', 'america/rainy_river', 'america/rankin_inlet', 'america/resolute',...
Dear all, ``` var s = spacetime.now(); s = s.goto('UTC'); console.log(s.unixFmt('ww')); ``` is giving me 33, while it is Calender Week 32... Any ideas?
Hi. When I run `npm run test` on `master` (`6.16.0`) locally, I get this output: ``` #0 - 1 minute away from dst - #1 - current time 2:00am again...
Hi, I'm interested in contributing to the library but I'm unable to get the daylight savings test cases passing after pulling from master. I'm currently based in mountain time and...
```js let d = spacetime('june 2nd 1892') d.every('year', 'june 2nd 1902').forEach((y) => { console.log(y.format('iso-short')) }) /* 1893-01-01 1894-01-01 1894-12-31 //day shy 1896-12-31 1898-12-31 1900-12-31 1894-12-31 */ ```