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
subtractWorkingTime from a nonworking time throws an error. Please see the below code.
const moment = require("moment-business-time"); moment.locale("en", { workinghours: { 0: null, 1: ["00:00:00", "24:00:00"], 2: ["00:00:00", "24:00:00"], 3: ["00:00:00", "24:00:00"], 4: ["00:00:00", "24:00:00"], 5: ["00:00:00", "24:00:00"], 6: null, }, holidays: [], }); var endDate = moment.utc("2020-12-26T15:00:00Z").add(3, "hours"); var startDate = endDate.subtractWorkingTime(1, "week"); console.log(startDate.format());
Please use the below link to run the code https://repl.it/@RejeevDivakaran/OpaqueUnfinishedModem#index.js
The text was updated successfully, but these errors were encountered:
The REPL you have linked does not throw an error and works as expected.
Sorry, something went wrong.
No branches or pull requests
subtractWorkingTime from a nonworking time throws an error.
Please see the below code.
Please use the below link to run the code
https://repl.it/@RejeevDivakaran/OpaqueUnfinishedModem#index.js
The text was updated successfully, but these errors were encountered: