Article View: sci.physics.relativity
Article #1730Re: General relativity and the GPS
From: Thomas 'PointedEars' Lahn
Date: Wed, 11 Nov 2026 05:11
Date: Wed, 11 Nov 2026 05:11
33 lines
2327 bytes
2327 bytes
Thomas 'PointedEars' Lahn wrote:
> ___
> ยน I did this using the JavaScript Console of the Chromium DevTools in
> Microsoft Edge:
>
> new Date(new Date(1977, 0, 1).setDate(d)).toUTCString()
>
> where d is the day number.
It should be noted that this works for me as my system is currently
using UTC+1 as timezone, and it would work on all systems that are using
UTC(+0).
For better or worse, the Date constructor when given Number values as
arguments assumes the date to be specified in the system timezone. One
way to work around this is to write
new Date('1977')
instead of
new Date(1977, 0, 1)
which produces a date with 00:00 UTC as specified in ECMAScript 17th
Edition (2026), ยงยง 21.4.2.1, 21.4.3.2, and 21.4.1.32, regardless of the
system's timezone.
<https://262.ecma-international.org/17.0/index.html?_gl=1*1o11thf*_ga*MTYyOTEzODk5NC4xNzk0MzcyODIw*_ga_TDCK4DWEPP*czE3OTQzNzI4MjAkbzEkZzAkdDE3OTQzNzI4MjAkajYwJGwwJGgw#sec-date-constructor>
--
PointedEars
Twitter: @PointedEars2
Please do not cc me. / Bitte keine Kopien per E-Mail.
Technical Details
Message-ID:
<11d0tdp$8djq$1@gwaiyur.mb-net.net>Path:
mbox-mo1.pugleaf.net!news-lax.pugleaf.net!srl.newsdeef.eu!news.mb-net.net!open-news-network.org!.POSTED!not-for-mailReferences:
<18e678b5d8bbceb0$69191$2370417$c2365abb@news.newsdemon.com> <Ll0Ok5vANkbsFWyFBlqaf6bZ51E@jntp> <11d0ilm$820t$1@gwaiyur.mb-net.net>Show Full Headers
Complete Article Headers
Path: mbox-mo1.pugleaf.net!news-lax.pugleaf.net!srl.newsdeef.eu!news.mb-net.net!open-news-network.org!.POSTED!not-for-mail From: Thomas 'PointedEars' Lahn <PointedEars@web.de> Newsgroups: sci.physics.relativity Subject: Re: General relativity and the GPS Date: Wed, 11 Nov 2026 06:11:20 +0100 Organization: PointedEars Software (PES) Message-ID: <11d0tdp$8djq$1@gwaiyur.mb-net.net> References: <18e678b5d8bbceb0$69191$2370417$c2365abb@news.newsdemon.com> <Ll0Ok5vANkbsFWyFBlqaf6bZ51E@jntp> <11d0ilm$820t$1@gwaiyur.mb-net.net> Reply-To: Thomas 'PointedEars' Lahn <usenet@PointedEars.de> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Injection-Date: Wed, 11 Nov 2026 05:11:21 -0000 (UTC) Injection-Info: gwaiyur.mb-net.net; logging-data="276090"; mail-complaints-to="abuse@open-news-network.org" User-Agent: Betterbird (Windows) Cancel-Lock: sha1:VakFvRu4GSHZJ8ZVOpLoClDLQc8= sha256:N/J+28mmC2v9BuUuignSH7e6BXTlkX6+RBHhxCr+Yjw= sha1:t9K9fqXwdTp1AKboAfaCbChJL0E= sha256:2T97NXjIN3YAURfDNasOsy/ay6BEOowXj2PRT1PMTlg= Content-Language: en-US, de-CH, de-DE In-Reply-To: <11d0ilm$820t$1@gwaiyur.mb-net.net>