@MikeShi42/

EmbarrassedUltimateLoops

Nodejs

No description

fork
loading
Files
  • index.js
  • package-lock.json
index.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
const moment = require('moment-timezone');


// 
console.log(
  moment.tz('America/Los_Angeles').startOf('day').day(0).add(3600000, 'ms').utc()
);

console.log(moment.tz('America/Los_Angeles').day())

console.log(moment().day())

console.log(moment('Wed Jun 19 2019 23:46:20 GMT-0700 (Pacific Daylight Time)'))


var DATE_RFC2822 = "ddd, DD MMM YYYY HH:mm:ss ZZ";
console.log(moment().format(DATE_RFC2822));
node v10.16.0