MCPcopy Create free account
hub / github.com/6dylan6/jdm / parseDate

Method parseDate

function/magic.js:828–832  ·  view source on GitHub ↗
(date)

Source from the content-addressed store, hash-verified

826
827 //yyyy-MM-dd HH:mm:ss
828 parseDate(date) {
829 let d = new Date(Date.parse(date.replace(/-/g, "/")));
830 d.setHours(d.getHours() + 8)
831 return d;
832 }
833
834 timestamp() {
835 return new Date().getTime()

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected