Closed prenx4x closed 1 year ago
hey Mufaddal - yep! epoch is like the universal heartbeat - same everywhere. If you want to compare dates, you'll have to compare date-strings, like an ISO or something. ✌️ fellow torontonian cheers
ps - hey hissab is cool!
@spencermountain Thanks for getting back so quickly. So the actual issue is that I am trying to find difference in timezones using .diff function (or epoch).
I checked https://github.com/spencermountain/spacetime/issues/309 and will try to follow the code snippet you provided.
Are you planning to add timezone difference support in your .diff function anytime soon?
ps - hey hissab is cool!
Thanks! I am using spacetime library for all date time calculations in my app (after trying some other popular libraries).
PS - feel free to connect with me on linkedin using the link in the footer of hissab's website. Its great to connect to fellow torontonian dev.
I am trying to get epoch value for particular timezone.
Output:
As you can see the epoch is still the same. Isn't it supposed to be different for different timezone. Is this a bug or I am doing something wrong?
Thanks.