ptera
ptera copied to clipboard
Ptera is DateTime library for Deno
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  But......my console output this 
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