LeapSecondTable inverse bug?
Nobody has claimed this yet.
Assessment
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Newbie friendliness
- 35/100
Research direction
Start by reproducing the two leapSecondTable expressions shown in the issue, using the LeapSecondTable path introduced by #38. Trace the UTC-to-TAI result through its inverse conversion and verify whether both lookups should produce 35s; done means the discrepancy is explained and covered by a regression test.
Written by the indexing model from the issue text.
Description
After applying @kim 's patch for #38 to load a LeapSecondTable, I see this.
Lookup UTC -> TAI
> leapSecondTable $ Left $ mkUTCTime (fromGregorian 2015 6 30) (hhmmss 23 59 59)
35s
Lookup (UTC -> TAI) -> UTC
> leapSecondTable $ Right $ mkUTCTime (fromGregorian 2015 6 30) (hhmmss 23 59 59) ^. absoluteTime leapSecondTable
36s
I think both expressions should return 35s? Is this a bug?
- Dominant language
- Haskell
- Stars
- 47
- Forks
- 35
- PR merge metrics
- No merged PRs in 30d
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from haskell-github-trust/thyme
-
Difficulty 3/5 1-2 days Newbie friendliness 35/100
-
Difficulty 1/5 Under an hour Newbie friendliness 45/100
-
Difficulty 3/5 1-2 days Newbie friendliness 25/100
-
Difficulty 4/5 3-5 days Newbie friendliness 35/100
haskell-github-trust/thyme#82 · 1 comment ·
-
Dependency Dashboard Open
Difficulty 2/5 1-3 hours Newbie friendliness 20/100
All issues in haskell-github-trust/thyme
Similar issues
-
time-manager-0.4.0 Openfailure: bounds
Difficulty 1/5 Under an hour Newbie friendliness 72/100
commercialhaskell/stackage#8122 ·
-
Difficulty 2/5 1-3 hours Newbie friendliness 68/100
simplex-chat/simplex-chat#7547 ·
-
chore
Difficulty 1/5 Under an hour Newbie friendliness 90/100
alunduil/alunduil-chezmoi#775 ·
-
bug
Difficulty 2/5 1-3 hours Newbie friendliness 72/100
objectionary/phino#1350 ·
-
Difficulty 2/5 1-3 hours Newbie friendliness 68/100