tempo icon indicating copy to clipboard operation
tempo copied to clipboard

📆 Parse, format, manipulate, and internationalize dates and times in JavaScript and TypeScript.

Results 19 tempo issues
Sort by recently updated
recently updated
newest added

In case we are comparing with the current time, the second argument could be omitted. It seems to work as expected, but it doesn't seem obvious from the docs. It...

This PR will close #7 @justin-schroeder made this as `draft`, need review and some help with timezones, also now we relative time for `now` only, but maybe we need to...

Thanks for this library its a delight to use! One feature I am missing is for a way to get the week number of a given date + startOfWeekDay. Would...

Would love to see a "format relative time" helper, like date-fns See: https://github.com/date-fns/date-fns/blob/f4e22da16/src/formatRelative/index.ts#L54

Hi, I'd like to request the possibility to explicitly work with milliseconds during the various operations this library offers. The uppercase S is a common template token for parsing and...

enhancement

based on issue https://github.com/formkit/tempo/issues/56 `is*`, `diff*` and most other functions that use the date function could 1 or more arguments be made optional to allow using the current time (`now`)...

This PR is stacked on PR https://github.com/formkit/tempo/pull/58 The `diff` & `add` function I had mentioned before at https://github.com/formkit/tempo/pull/66#issuecomment-2263626679 This PR adds the following: * `diff` function which takes 1/2 date(s)...

## Overview This pull request introduces a new feature: the `formatOrParseDuration` function. This function provides the ability to both format durations given in milliseconds to a specified string format and...

i didn't find way to pass {numberingSystem:'arab'} , it's a valid option to intl.DateTimeFormatOptions but i can include it in locale string like this `ar-u-nu-arab` this throw `invalid locale tag...

In the ye olde days, timezones were not standardized so the offset from GMT is basically the geographic position of the timezone in degrees/minutes. So the timezone offset for `America/Detroit`...

bug
help wanted