tso-data-models
Advanced tools
Comparing version 1.0.36 to 1.0.37
@@ -9,3 +9,6 @@ "use strict"; | ||
var time = new Date(this.time); | ||
return this.exchange.toLowerCase() + "_" + time.getFullYear() + "_" + time.getMonth() + "_" + time.getDay() + "_" + this.baseCurrency.toLowerCase() + ".csv"; | ||
var year = time.getFullYear().toString(); | ||
var month = time.getMonth().toString(); | ||
var day = time.getDay().toString(); | ||
return this.exchange.toLowerCase() + "_" + year + "_" + month + "_" + day + "_" + this.baseCurrency.toLowerCase() + ".csv"; | ||
}; | ||
@@ -12,0 +15,0 @@ DataPoint.prototype.symbolMatches = function (symbol) { |
{ | ||
"name": "tso-data-models", | ||
"version": "1.0.36", | ||
"version": "1.0.37", | ||
"description": "", | ||
@@ -5,0 +5,0 @@ "main": "lib/index.js", |
@@ -14,3 +14,6 @@ export class DataPoint { | ||
const time: Date = new Date(this.time); | ||
return `${this.exchange.toLowerCase()}_${time.getFullYear()}_${time.getMonth()}_${time.getDay()}_${this.baseCurrency.toLowerCase()}.csv`; | ||
const year: string = time.getFullYear().toString(); | ||
const month: string = time.getMonth().toString(); | ||
const day: string = time.getDay().toString(); | ||
return `${this.exchange.toLowerCase()}_${year}_${month}_${day}_${this.baseCurrency.toLowerCase()}.csv`; | ||
} | ||
@@ -17,0 +20,0 @@ |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
61490
910