ptera icon indicating copy to clipboard operation
ptera copied to clipboard

Ptera is DateTime library for Deno

Results 9 ptera issues
Sort by recently updated
recently updated
newest added

I came across this behavior while using ptera to parse ISO strings without milliseconds. It's clear from the tests that this is the intended behavior, but I didn't notice this...

I want to parse UTC time string to ZonedTime ![image](https://user-images.githubusercontent.com/26020165/156550650-e0a01537-e3bd-4d54-b655-fa27af1984ce.png) But......my console output this ![image](https://user-images.githubusercontent.com/26020165/156551257-8b064f0b-6e7d-40e2-a3f5-0adeee6563cb.png)

Nice library! Have you considered adding a "fromNow()" function (like in moment.js) that formats a date like: * just now * 5 minutes ago * 3 months ago * 2...

invalid reason, error messages

ex. nextFriday, getWeek, isSaturday

Hi, I noticed that if I set a time that is at noon (12 o'clock) and I use the format `a`, it reports this as AM. According to wikipedia, this...

Here : https://github.com/Tak-Iwamoto/ptera/blob/96e8e72ed20e94450dc6c634d3489a8b3c1ae54b/format.ts#L77 It should be backquotes instead of double quotes.

When millisecond is less than 100 the "S" formatting returns literally "0${millisecond}" rather than performing variable substitution.

Corrects the function for day of week in accordance with what's in the code. https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Date/getUTCDay#return_value https://github.com/Tak-Iwamoto/ptera/blob/ec29b7cfa3038b1cea07b9d0d1e69c39ee472d6d/convert.ts#L105-L108