16

Вопрос по date, node.js, javascript – undefined

Error: User Rate Limit ExceededError: User Rate Limit ExceededError: User Rate Limit Exceeded

Error: User Rate Limit Exceeded

//Wed, 04 Apr 2012 21:09:16 GMT
to   = moment.utc().add('m', 60).toDate();

Error: User Rate Limit Exceeded

seconds = moment.utc().diff(to, 'seconds');

Error: User Rate Limit Exceeded10800Error: User Rate Limit Exceeded3600Error: User Rate Limit Exceeded

Error: User Rate Limit Exceeded

Error: User Rate Limit Exceeded

Error: User Rate Limit Exceeded

Error: User Rate Limit Exceededseconds = moment().diff(to, 'seconds');Error: User Rate Limit Exceeded-3600Error: User Rate Limit Exceeded

Error: User Rate Limit Exceeded

Error: User Rate Limit Exceeded

{ _d: Thu, 05 Apr 2012 17:33:18 GMT, _isUTC: true }
{ _d: Thu, 05 Apr 2012 16:38:45 GMT, _isUTC: true }

Error: User Rate Limit Exceeded

Error: User Rate Limit Exceededd1.diff(d2, 'hours', true);Error: User Rate Limit Exceeded4Error: User Rate Limit ExceededshouldError: User Rate Limit Exceeded

  • @ Супер я редактировал пост. Работа с моментными объектами, которые являются UTC, получая подобные проблемы.

    от dzm
  • Error: User Rate Limit Exceeded

    от dzm
  • Error: User Rate Limit Exceeded

    от
  • Error: User Rate Limit Exceeded

    от
  • 17

    Error: User Rate Limit Exceeded

    var a = moment.utc().add('m', 60).toDate(),
        b = moment().diff(to, 'seconds'); // use moment() instead of moment.utc()
    

    toStringmoment().toString()Date().toString()

  • 0

    Error: User Rate Limit Exceeded

    toDate()to = moment.utc().add('m', 60);).