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,150 of 68,980    |
|    JJ to Dr J R Stockton    |
|    Re: WSH VBS question    |
|    09 Feb 18 18:36:12    |
      From: jj4public@vfemail.net              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.              --- 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