We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Describe the bug
difference results in incorrect value for 'quarters'
Steps to Reproduce
import { difference } from "https://deno.land/std@0.170.0/datetime/mod.ts"; const date0 = new Date("2018-05-14"); const date1 = new Date("2020-06-13"); console.log(difference(date0, date1));
The output is:
{ milliseconds: 65750400000, seconds: 65750400, minutes: 1095840, hours: 18264, days: 761, weeks: 108, months: 24, quarters: 6, years: 2 }
Expected behavior
If the value for months is 24 the value for quarters should be 8 instead of 6.... right?
24
8
6
Environment
The text was updated successfully, but these errors were encountered:
I'll fix this in a PR this week.
Sorry, something went wrong.
.quarter
difference()
Successfully merging a pull request may close this issue.
Describe the bug
difference results in incorrect value for 'quarters'
Steps to Reproduce
The output is:
Expected behavior
If the value for months is
24
the value for quarters should be8
instead of6
.... right?Environment
The text was updated successfully, but these errors were encountered: