stockshark-util
Advanced tools
Comparing version 1.0.13 to 1.0.14
{ | ||
"name": "stockshark-util", | ||
"version": "1.0.13", | ||
"version": "1.0.14", | ||
"description": "util", | ||
@@ -5,0 +5,0 @@ "main": "./src/index.js", |
@@ -33,15 +33,15 @@ var moment = require('moment-timezone'); | ||
function diffDays(utcEpoch1, utcEpoch2) { | ||
return moment(utcEpoch1).diff(utcEpoch2, 'day') | ||
return this.dateFromETDateStr(utcEpoch1).diff(utcEpoch2, 'day') | ||
} | ||
function toETDateString(utcEpoch) { | ||
return moment.tz(utcEpoch, ET).format('YYYY-MM-DD') | ||
return this.dateFromETDateStr(utcEpoch).format('YYYY-MM-DD') | ||
} | ||
function toETDateTimeString(utcEpoch) { | ||
return moment.tz(utcEpoch, ET).format('YYYY-MM-DD HH:mm:ss') | ||
return this.dateFromETDateStr(utcEpoch).format('YYYY-MM-DD HH:mm:ss') | ||
} | ||
function toETDateTimeZoneString(utcEpoch) { | ||
return moment.tz(utcEpoch, ET).format('YYYY-MM-DD HH:mm:ss [GMT]Z (z)') | ||
return this.dateFromETDateStr(utcEpoch).format('YYYY-MM-DD HH:mm:ss [GMT]Z (z)') | ||
} | ||
@@ -48,0 +48,0 @@ |
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
31269