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.1 to 1.0.3

2

package.json
{
"name": "stockshark-util",
"version": "1.0.1",
"version": "1.0.3",
"description": "util",

@@ -5,0 +5,0 @@ "main": "./src/index.js",

const util = require('./util')
console.log(util.nowETDateTimeZoneString())
// console.log(util.nowETDateTimeZoneString())
var date = util.utcEpochFromETDateStr("2006-07-12")
let length = 0
while (length < 5000) {
console.log(util.toETDateString(date))
console.log(util.toETDateTimeZoneString(date))
// var date = util.utcEpochFromETDateStr("2006-07-12")
// let length = 0
// while (length < 5000) {
// console.log(util.toETDateString(date))
// console.log(util.toETDateTimeZoneString(date))
length++
date = util.addDays(date, 1)
}
// length++
// date = util.addDays(date, 1)
// }
console.log(util.nowET())

@@ -38,2 +38,10 @@ var moment = require('moment-timezone');

function nowET() {
return moment.tz(moment(), ET).valueOf()
}
function nowETDateString() {
return moment.tz(moment(), ET).format('YYYY-MM-DD')
}
function nowETDateTimeString() {

@@ -124,2 +132,4 @@ return moment.tz(moment(), ET).format('YYYY-MM-DD HH:mm:ss')

toETDateTimeZoneString,
nowET,
nowETDateString,
nowETDateTimeString,

@@ -126,0 +136,0 @@ nowETDateTimeZoneString,

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