stockshark-util
Advanced tools
Comparing version 1.0.1 to 1.0.3
{ | ||
"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, |
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
4737
134