A moment-business-days wrapper concerning Operations in Brazil
-
Date formart: YYYY-MM-DD
-
Datetime formart: YYYY-MM-DD HH:mm:ss
-
Market Close time 20:00 UTC+0
-
Market Open time 12:00 UTC+0
-
businessSubtract(date: string, days: number): string
-
businessAdd(date: string, days: number): string
-
nextBusinessDay(): string
-
isMarketOpen(): boolean
-
isBusinessDay(): boolean
-
isBeforeOpen(): boolean
-
isAfterClose(): boolean
-
today(): string
-
now(): string
-
holidays(): string[]
-
isMarketOpenOnDate(date: string): boolean
-
getMarketOpeningDatetime(date: string): string
-
getMarketClosingDatetime(date: string): string
{
"version":"0.2.0",
"configurations":[
{
"type":"node",
"request":"launch",
"name":"Jest Current File",
"program":"${workspaceFolder}/node_modules/.bin/jest",
"console":"integratedTerminal",
"internalConsoleOptions":"neverOpen"
},
{
"name":"Debug Jest Tests",
"type":"node",
"request":"launch",
"runtimeArgs":[
"--inspect-brk",
"${workspaceRoot}/node_modules/.bin/jest",
"--runInBand",
"--testMatch",
"**/test/unit/**/${fileBasename}"
],
"args":[
"-i",
"-t",
"should dispatch GetAccessToken Test"
],
"console":"integratedTerminal",
"internalConsoleOptions":"neverOpen",
"port":9229
},
{
"type":"node",
"request":"launch",
"name":"Jest Current File",
"program":"${workspaceFolder}/node_modules/.bin/jest",
"envFile":"${workspaceFolder}/.env",
"args":[
"--runTestsByPath",
"${relativeFile}"
],
"console":"integratedTerminal",
"internalConsoleOptions":"neverOpen",
"disableOptimisticBPs":true,
"windows":{
"program":"${workspaceFolder}/node_modules/jest/bin/jest"
},
"env":{
"NODE_ENV":"test"
}
}
]
}