Skip to content
Source
Sign inSign up
TanStack/time

feat: time core #12

Closedbart-krakowski(GitHub profile, opens in a new tab)wants to merge 186 commits intov0 fromrefs/pull/12/headopened

Showing 82 changed files with 91 additions and 0 deletions (loading 79).

x
0 of 82 viewed, 82 left
0 additions and 0 deletions.turbo/daemon/8560fb4b2dbac6ca-turbo.log.2024-07-18Added
View file

Empty file.

91 additions and 0 deletionsadr/choosing-a-date-time-handling-solution.mdAdded
View file
@@ -0,0 +1,91 @@
+# ADR: Choosing a Date and Time Handling Solution
+​
+## Status
+​
+Accepted, decided on Temporal API.
+​
+## Context
+​
+In modern web applications, accurate and efficient handling of dates and times is crucial. Traditional JavaScript `Date`` objects have several limitations and pitfalls, including:
+- Lack of support for different calendars
+- Difficulties with time zone conversions
+- Ambiguous and error-prone APIs for date and time manipulation
+​
+These issues often lead to bugs and inefficiencies in handling date and time data, especially in complex applications that require extensive date and time manipulations, such as calendar applications.
+​
+## Decision
+​
+After evaluating several options, we have decided to adopt the Temporal API for all date and time handling in our application. Temporal is a new standard for working with dates and times in JavaScript, designed to provide a more reliable, readable, and easy-to-use API.
+​
+### Evaluation of Alternatives
+​
+1. **JavaScript `Date`**
+ - **Pros**:
+ - Built-in and requires no additional dependencies.
+ - Supported natively in all JavaScript environments.
+ - **Cons**:
+ - Ambiguous and error-prone API.