consento-org / consento-org/bigint-time
Transform to DateTime
- Dominant language
- JavaScript
- Stars
- 2
- Forks
- 0
- PR merge metrics
- No merged PRs in 30d
Description
**Problem**
When rendering a timestamp generated with `bigint-time` to the user, the nanoseconds don't really matter, but I somehow need to turn it into a Time instance for formatting.
**Improvement**
Add a `toDate` method that allows to get the data as a standard JavaScript Date Object.
**Alternatives**
Maybe a `toISODate` method may be even better to use?
Contributor guide
Research direction
Start by locating the package entry point and the existing timestamp conversion logic. Implement the requested conversion to a standard JavaScript Date object, then verify that the returned value represents the timestamp correctly; the issue does not name a test file or specific entry point.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- javascript
- Domain
- tooling
- Issue type
- Feature
- Difficulty
- 2/5
- Estimated time
- 1-3 hours
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100