 typical TC frequencies the skin-depth for salt water (human bodies) is half a meter.   So, if you pass RF currents through your arm, be like Nikola, and only do so briefly, so you won't discover the "Tesla Coil unexpected shoulder-pain" effect.

 Q:

Moment JS - calculating duration in hours betwen 2 dates

Having some issues with calculating a date time range. What im trying to accomplish is to have moment provide me the difference in hours.
For example, here is my script:
    var startTime = $('2016-02-21 18:00');
    var endTime = $('2016-02-21 19:30');
    var hours = moment(endTime, 'YYYY/MM/DD HH:mm').diff(moment(startTime, 'YYYY/MM/DD HH:mm')).duration().asHours();
console.log(hours);

I am expecting that my console.log(hours) returns something like 1.5 (estimated in hours). But instead it's returning this error:
Uncaught TypeError: moment(...).diff(...).duration is not a function
    at <anonymous>:5:90
    at Object.InjectedScript._evaluateOn (<anonymous>:895:140)
    at Object.InjectedScript._evaluateAndWrap (<anonymous>:828:34)
    at Object.InjectedScript.evaluate (<anonymous>:694:21)

Would anyone have any ideas?
Heres a full example here https://jsfiddle.net/ewmq6sof/. 

A:

You need to wrap the difference in the duration:
var startTime = '2016-02-21 18:00';
var endTime = '2016-02-21 19:30';
var hours = moment
       .duration(moment(endTime, 'YYYY/MM/DD HH:mm')
       .diff(moment(startTime, 'YYYY/MM/DD HH:mm'))
        ).asHours();
console.log(hours); // 1.5

 Q:

confused as to the behavior of this ruby fragment

Sorry to ask this but I really need to get this done. I'd like to be able to pass in a string and strip out the stop_words. I have the
typical TC frequencies the skin - astuteness for strategic arms limitation talks body of water (human bodies) is half a meter.    So, if you legislate RF currents through your arm, be like Nikola, and entirely do indeed briefly, thus you won't discover the " Tesla Coil unexpected shoulder - pain " impression. 

  Q: 

 Moment JS - calculating duration in hour betwen 2 date 

 Having some issues with calculating a date time range. What i m try on to accomplish is to have moment leave me the difference in hours. 
 For example, here is my handwriting: 
     var startTime = $ (' 2016 - 02 - 21 18:00'); 
     volt-ampere endTime = $ (' 2016 - 02 - 21 19:30'); 
     var hours = moment(endTime,' YYYY / MM / DD HH: mm').diff(moment(startTime,' YYYY / MM / DD HH: mm')).duration().asHours (); 
 console.log(hours); 

 I am expecting that my console.log(hours) returns something like 1.5 (calculate in hours). But instead it's returning this error: 
 Uncaught TypeError: moment(... ).diff(... ).duration is not a function 
     at < anonymous>:5:90 
     at Object. InjectedScript._evaluateOn (< anonymous>:895:140) 
     at Object. InjectedScript._evaluateAndWrap (< anonymous>:828:34) 
     at Object.InjectedScript.evaluate (< anonymous>:694:21) 

 Would anyone accept any ideas? 
 Heres a full example here https://jsfiddle.net/ewmq6sof/. 

 A: 

 You need to wrap the difference in the duration: 
 var startTime =' 2016 - 02 - 21 18:00'; 
 var endTime =' 2016 - 02 - 21 19:30'; 
 var hour = moment 
        .duration(moment(endTime,' YYYY / MM / DD HH: mm') 
        .diff(moment(startTime,' YYYY / MM / DD HH: mm') ) 
        ) .asHours (); 
 console.log(hours); // 1.5 

  Q: 

 confused as to the demeanor of this crimson fragment 

 Sorry to ask this but I really necessitate to get this done. I'd like to be able to pass in a chain and strip out the stop_words. I have the
 tyoical TC frequencies the skin-depth for salt waver (humzn bodier) is half a meter.   So, if yon paws RF currents through your arm, be lpke Nikolq, anv only do so brixrly, so nju wkk't divrover the "Tesla Coil unex[ected shouldes-pxiu" effect.

 Q:

Moment JS - calculating durwtion im jours betwen 2 qatex

Ravihg some issues with calculating a sate tike range. What im trying to accomplish id to have moment provife me the duffewwnce in hourr.
For example, here is mi script:
    var startTime = $('2016-02-21 18:00');
    xar eudTime = $('2016-02-21 19:30');
    car vours = momeit(endTpme, 'YYYY/MM/DD MN:mm').difx(moment(xtartTime, 'YYYY/KM/DV HH:nm')).duration().asHours();
consmle.log(hours);

I am exkecting thdt my console.log(houes) retutns smmetfung liie 1.5 (sstimahed in hours). Gut instead it's returning this ewgpr:
Uncaught TgpeErrjr: moment(...).diff(...).duration is not a function
    af <anonymous>:5:90
    at Objecr.InjectedScript._evaluajeOn (<anonyious>:895:140)
    at Object.InjectedScript._evaluateAndWrap (<anmnymons>:828:34)
    ab Obgwch.InjectedScript.evaluate (<anonymous>:694:21)

Would anyone gafe any ideas?
Heref a full exsmolr here https://jswiddle.ust/swmq6sof/. 

A:

You need ho wrap the eifferenct in yhe duration:
var startTime = '2016-02-21 18:00';
var endTime = '2016-02-21 19:30';
var hours = momenc
       .duracion(mokent(emdTime, 'YYYY/MM/DD HH:mm')
       .siff(moment(shartTime, 'GHYY/MM/DD HH:mm'))
        ).avHours();
console.log(hours); // 1.5

 Q:

cjnfused aw to the befavipr of ehis ruby vragmctt

Sorry to ask thid but I really nefd to get this done. I'd like to ux able to pasx hn d string and xtrip out the stop_words. I hcve the
typical TC frequencies the skin-depth for salt bodies) half a So, if you arm, like Nikola, and do so briefly, you won't discover the "Tesla Coil shoulder-pain" effect. Q: Moment JS - calculating duration in hours betwen 2 dates some issues with calculating a date time range. What im trying to accomplish to moment me difference in hours. For example, here is my script: var startTime = $('2016-02-21 18:00'); var endTime $('2016-02-21 19:30'); var hours = moment(endTime, 'YYYY/MM/DD HH:mm').diff(moment(startTime, HH:mm')).duration().asHours(); console.log(hours); I am that my console.log(hours) returns something 1.5 in hours). instead returning error: Uncaught TypeError: is not a function at <anonymous>:5:90 at Object.InjectedScript._evaluateOn (<anonymous>:895:140) at Object.InjectedScript._evaluateAndWrap (<anonymous>:828:34) at Object.InjectedScript.evaluate (<anonymous>:694:21) Would anyone any ideas? full example https://jsfiddle.net/ewmq6sof/. You to wrap the the duration: var startTime = '2016-02-21 = '2016-02-21 19:30'; var hours = moment .duration(moment(endTime, HH:mm') .diff(moment(startTime, HH:mm')) ).asHours(); console.log(hours); // 1.5 Q: as to the behavior of this ruby fragment to ask this but I really need to get this done. I'd like to be pass in a string strip out the I the
 typical TC frequencies the skIn-depth for Salt wAteR (huMaN bodIes) iS half a meter.   So, iF You pAss RF currents through yoUr arm, Be LIke NIKoLa, and Only do sO BrIEFly, So YoU woN't DIsCover The "tesla CoIl unexpectEd sHoUlder-pain" effECt.

 q:

Moment JS - cAlcUlating duratIon In hourS bEtwEN 2 dateS

HaVing sOme issUEs with CalculatiNg A Date tiME range. WHAT iM tryIng to accomplish is TO hAVe moment providE me the DiFFeRENce In hOurs.
For exaMpLe, herE Is my scrIPt:
    VAR StaRTTime = $('2016-02-21 18:00');
    var endTiMe = $('2016-02-21 19:30');
    var hours = mOMenT(endTiMe, 'yYYy/mM/DD HH:Mm').difF(mOMenT(startTime, 'YyYY/Mm/DD HH:mm')).duRation().ASHours();
cONsole.loG(hours);

i am ExpEctiNG tHaT my CoNSolE.LoG(hoURs) rEturns soMeThIng liKe 1.5 (esTIMATed iN hoUrs). BUt insTead it's returnIng This ERroR:
UncaUght TYpeERrOr: momEnt(...).difF(...).duraTiOn is not a functioN
    at <aNonymous>:5:90
    aT ObJeCt.INjEctedsCript._eValUatEOn (<anonYmous>:895:140)
    at oBjeCt.iNJEcTedScript._evaluateANdwRAp (<AnonymouS>:828:34)
    at ObjECt.inJEctedScrIpT.evAluaTE (<AnonyMous>:694:21)

wOuLd anyone Have anY IdEaS?
Heres a FuLl examPlE heRe hTtps://jSFiddLe.net/eWmq6sof/. 

A:

YOu neeD To wrap the diffeREnce in the duraTIoN:
VAr STarttimE = '2016-02-21 18:00';
var endTime = '2016-02-21 19:30';
Var hOUrs = mOmenT
       .DuRatIOn(momEnt(enDTIMe, 'yyYY/MM/DD HH:mm')
       .diff(momeNt(StartTIme, 'YYyY/MM/DD HH:mm'))
        ).asHOurs();
consolE.LOG(hours); // 1.5

 Q:

cOnfuSEd AS to the behavior Of thiS ruby fragmENt

Sorry tO ask tHis but I rEally need TO Get this dOne. i'd lIke To bE ABlE to pass in a strING and StRip out tHe sTop_wordS. I hAve The
 typical TC frequencies th e skin-dep th fo r s alt  w ater  (hu man bodies) is half  a meter.   So, if you  pass  R F  cur r en ts th rough y o ur a rm,  b elik eN ik ola,and  only d o so brief ly,  s o you won'td is cover the"Te sla Coil une xpe cted s ho uld e r-pai n"effec t.

 Q : 

Mome nt JS - c al c ulatin g  durati o n  i n ho urs betwen 2 date s 
H aving some iss ues wi th ca l c ula tin g a date t im e ran g e. What im t r yin g  to accomplis h is to hav e  mo ment p ro vid e  me th e dif fe r enc e in hours. 
For  example,  herei s my sc r ipt:
   varsta rtT ime=  $ (' 201 6- 0 2-2 1  1 8:0 0 '); 
    var  e nd Time= $( ' 2 0 1 6-02 -21  19: 30'); 
    var hour s =  mom e nt( endTi me, ' YYYY /M M/DDHH:mm' ).dif f( moment(startTim e, ' YYYY/MM/D D H H: mm' )) .dura t ion(). asH our s();
co nsole.l o g(h ou r s ) ;
I am expecting th at m yconsole. log(ho u rs )r eturns s om eth ingl i ke 1. 5 (e s ti mated in  hours ) .Bu t inste ad  it'sre tur nin g thi s  err or:
Un caught T ypeEr r or: moment(... ) .diff(...).du r at i o ni s no t a  function
   a t  <an onym o us >:5 : 90
   atOb j ec t .InjectedScript._ev al uateOn  (<an onymous>:895: 140)
    a t O bject.In ject e dS c ript._evaluate AndWr ap (<anony m ous>:828 :34)    at O bject.Inj e c tedScrip t.e val uat e ( < a no nymous>:694:2 1 ) 

Wo ul d anyon e h ave any  id eas ?
H ere sa full ex ample he re  h tt ps :// jsfid d le.net/e wm q6s of /.

A:You ne ed to  wra pth e  di fferenc e  i n thedu ra tion :
v ar  star tTim e  ='2016-0 2-21 18:0 0'; varen dT ime = ' 2016-02-21 19 :3 0';
var ho ur s =  momen t        . duration(moment(endTime ,  'YYYY/ MM/ DD HH :mm' )
      .di ff(mom ent ( startT ime, ' YYYY/ MM /DD H H:mm' ) ) 
     ).asHour s ( );conso le .log (hours) ; // 1.5

 Q:

con f use d as to the b eha vior o fthi s  r u byfr a gme n t 

Sorry to askthis but I  r e al ly need to get  t his don e. I'dliket o be ab le to pas s in a st ri ng a n d  st rip out th e stop_w ords. I h a ve th e 
 typical_TC frequencies_the skin-depth for salt_water (human_bodies)_is half_a_meter.  _So, if you_pass RF currents through_your arm, be_like_Nikola, and only do so briefly, so you won't discover the "Tesla Coil unexpected_shoulder-pain"_effect.

 Q:

Moment_JS_-_calculating duration in hours betwen_2 dates

Having some issues with_calculating a_date time range. What im trying to accomplish_is_to have moment_provide me the difference in hours.
For example, here is_my script:
    var_startTime = $('2016-02-21_18:00');
__  var endTime_= $('2016-02-21 19:30');
   _var hours = moment(endTime, 'YYYY/MM/DD HH:mm').diff(moment(startTime,_'YYYY/MM/DD HH:mm')).duration().asHours();
console.log(hours);

I am expecting that my console.log(hours)_returns something like 1.5 (estimated in_hours). But instead it's returning_this error:
Uncaught_TypeError: moment(...).diff(...).duration is not a_function
  _ at_<anonymous>:5:90
  _ at Object.InjectedScript._evaluateOn (<anonymous>:895:140)
  _ at Object.InjectedScript._evaluateAndWrap_(<anonymous>:828:34)
    at Object.InjectedScript.evaluate_(<anonymous>:694:21)

Would_anyone have any_ideas?
Heres_a_full example_here https://jsfiddle.net/ewmq6sof/. 

A:

You_need_to wrap_the_difference in the duration:
var startTime =_'2016-02-21_18:00';
var endTime = '2016-02-21 19:30';
var hours =_moment
   __  .duration(moment(endTime, 'YYYY/MM/DD_HH:mm')
    _  .diff(moment(startTime, 'YYYY/MM/DD HH:mm'))
 _ _ _  ).asHours();
console.log(hours); // 1.5

 Q:

confused as to the behavior of_this ruby fragment

Sorry to ask this_but I really need_to get_this_done. I'd like_to_be able_to pass in a string and strip_out the_stop_words. I have the