Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.javascript > #31160
| Path | csiph.com!news.mixmin.net!weretis.net!feeder1.news.weretis.net!news.solani.org!.POSTED!not-for-mail |
|---|---|
| From | Thomas 'PointedEars' Lahn <PointedEars@web.de> |
| Newsgroups | comp.lang.javascript |
| Subject | Re: A little exercise |
| Date | Thu, 25 Aug 2016 06:35:45 +0200 |
| Organization | PointedEars Software (PES) |
| Lines | 21 |
| Message-ID | <11622426.uLZWGnKmhe@PointedEars.de> (permalink) |
| References | <exercise-20160824221308@ram.dialup.fu-berlin.de> <npl8pt$8e9$1@news.albasani.net> <Date-20160825000825@ram.dialup.fu-berlin.de> <random-20160825001943@ram.dialup.fu-berlin.de> |
| Reply-To | Thomas 'PointedEars' Lahn <cljs@PointedEars.de> |
| Mime-Version | 1.0 |
| Content-Type | text/plain; charset="UTF-8" |
| Content-Transfer-Encoding | 8Bit |
| X-Trace | solani.org 1472099748 9648 eJwFwQEBACAIA7BKIv/ROILSP4IbXaYKiAKb/TA8UpOmvNeyhRtcxxe4t/vSRM2XZ1hhKz8MGRB0 (25 Aug 2016 04:35:48 GMT) |
| X-Complaints-To | abuse@news.solani.org |
| NNTP-Posting-Date | Thu, 25 Aug 2016 04:35:48 +0000 (UTC) |
| User-Agent | KNode/4.14.2 |
| X-User-ID | eJwFwQkBwDAIA0BLgxAocspT/xJ2R7h4hznd+PjKuK0JXJtgZUNm3+pgPG3qIthfmHJDr29hT3iK4Qjlyx9fBhUL |
| X-NNTP-Posting-Host | eJwFwQkBwDAIA0BLdJRPDoXEv4Tdmfrxievm12i8h1GbE+AbbEMNUpGStQIKQnX2652H6eYPOBgSuQ== |
| Cancel-Lock | sha1:FfytKcd9sv2qLDPrmOEOL/MzhjE= |
| Xref | csiph.com comp.lang.javascript:31160 |
Show key headers only | View raw
Stefan Ram wrote: > But then, »unix = Math.round(+new Date()/1000)«, The unary plus operator – <http://ecma-international.org/ecma-262/7.0/#sec-unary-plus-operator> – is unnecessary as the “/” operator is a Multiplicative Operator (like “*” and “%”) that already converts its operands to Number: <http://ecma-international.org/ecma-262/7.0/#sec-multiplicative-operators-runtime-semantics-evaluation> And since a UNIX timestamp has only seconds, it is debatable whether it should not be Math.floor(…) instead of Math.round(…). -- PointedEars FAQ: <http://PointedEars.de/faq> | SVN: <http://PointedEars.de/wsvn/> Twitter: @PointedEars2 | ES Matrix: <http://PointedEars.de/es-matrix> Please do not cc me. / Bitte keine Kopien per E-Mail.
Back to comp.lang.javascript | Previous | Next — Previous in thread | Find similar | Unroll thread
Re: A little exercise Andreas Bergmaier <andber93@web.de> - 2016-08-25 00:58 +0200 Re: A little exercise Thomas 'PointedEars' Lahn <PointedEars@web.de> - 2016-08-25 06:35 +0200
csiph-web