Baphomet is the dedicated bot for nulloctet matrix
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

17 lines
473 B

  1. function toISODateString(d) {
  2. function pad(n) { return n < 10 ? '0' + n : n }
  3. return d.getUTCFullYear() + '-'
  4. + pad(d.getUTCMonth() + 1) + '-'
  5. + pad(d.getUTCDate()) + 'T'
  6. + pad(d.getUTCHours()) + ':'
  7. + pad(d.getUTCMinutes()) + ':'
  8. + pad(d.getUTCSeconds()) + 'Z'
  9. }
  10. function sleep(ms){
  11. return new Promise(resolve=>{
  12. setTimeout(resolve,ms)
  13. })
  14. }
  15. exports.toISODateString = toISODateString;
  16. exports.sleep = sleep;