home bbs files messages ]

Forums before death by AOL, social media and spammers... "We can't have nice things"

   alt.msdos.batch.nt      Fun with Windows NT batch files      68,980 messages   

[   << oldest   |   < older   |   list   |   newer >   |   newest >>   ]

   Message 67,152 of 68,980   
   Dr J R Stockton to All   
   Re: WSH VBS question   
   09 Feb 18 05:20:01   
   
   From: J.R.Stockton@physics.org   
      
   On Friday, February 9, 2018 at 11:36:13 AM UTC, JJ wrote:   
   > On Thu, 8 Feb 2018 13:30:07 -0800 (PST), Dr J R Stockton wrote:   
   > > Within Windows Scripting Host running VBScript, e.g. in '   
   > >   Prompt>CScript //nologo FILE.VBS  ',   
   > > is it possible, given a general CDate variable, to   
   > > determine the offset from GMT/UTC of the date/time   
   > > represented by the value of the variable, or equivalent   
   > > information, and if so how,   
   > >   
   > > (a) Using features of VBScript itself,   
   > > (b) Otherwise, using some API or system call,   
   > > without invoking JScript?   
   >   
   > Since VB date represent the local time, and IEEE date represent the UTC   
   > time, the time difference will give you the time zone of your system. So,   
   > manually decode the IEEE date then compare the result with the one converted   
   > from CDate.   
      
   So how does one get the "IEEE date", whatever that term is supposed to mean,   
   corresponding to the aforementioned CDate variable, preferably using just   
   VBScript, and in what form does one get it?   
      
   --   
     (c) John Stockton, near London, UK.  Using Google Groups.           |   
    Mail: J.R.""""""""@physics.org - or as Reply-To, if any.             |   
      
   --- SoupGate-Win32 v1.05   
    * Origin: you cannot sedate... all the things you hate (1:229/2)   

[   << oldest   |   < older   |   list   |   newer >   |   newest >>   ]


(c) 1994,  bbs@darkrealms.ca