Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

stockshark-util

Package Overview
Dependencies
Maintainers
1
Versions
444
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

stockshark-util - npm Package Compare versions

Comparing version 1.0.13 to 1.0.14

2

package.json
{
"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 @@

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc