Re: Need script to retrieve time

Tech-Archive recommends: Fix windows errors by optimizing your registry



The Planet Source Code link Ken provided gives a list of downloadable VB
projects for doing an atomic clock thing (source code).

If you want to approach things a different way... When the system clock is
changed, the WM_TIMECHANGE message is sent across Winders. Catching the
WM_TIMECHANGE message via subclassing will let the app know that someone
changed the system clock, then you can take whatever actions (log the time
change, lock out the app until a boss/supervisor unlocks it, etc.).



"BarryS" <barry.swedeen@xxxxxxxxxxxxx> wrote in message
news:c8Jye.59310$Oi4.602103@xxxxxxxxxxxxxxxxxxxxxxxxxxx
> Belated thanks for the link; however, I was looking for some source code
or
> even a snippet of same to get me started in the right direction. I really
> don't want to use a separate standalone app.
>
> Barry
>
> "Ken Halter" <Ken_Halter@xxxxxxxxxxxxxxxxxxxxxxxxx> wrote in message
> news:eCKLagafFHA.1284@xxxxxxxxxxxxxxxxxxxxxxx
> > "BCS" <bswedeen@xxxxxxxxxxxxx> wrote in message
> > news:yKWwe.77284$XQ.1106469@xxxxxxxxxxxxxxxxxxxxxxxxxxx
> > >I am writing a Timeclock program for a standalone PC at a remote retail
> > > site. I presently have the program getting its time from the PC, but I
> > > want
> > > to eliminate the possibility of someone changing the PC time in order
to
> > > falsely report their hours.
> > >
> > > What I would like to do is have my program retrieve the time (EST)
from
> a
> > > trustworthy source on the Net like the USNO or the Atomic Clock and
> assign
> > > that value to the code variable. If the Internet connection is down
then
> > > use
> > > the PC's clock. Any ideas?
> > >
> > > Thanks,
> > >
> > > Barry
> >
> > Several samples here.....
> >
> > Search Results: Page 1 of 2 found. Entries 1 - 10 of 12 found
> >
>
http://www.planet-source-code.com/vb/scripts/BrowseCategoryOrSearchResults.a
sp?blnWorldDropDownUsed=TRUE&txtMaxNumberOfEntriesPerPage=10&blnResetAllVari
ables=TRUE&optSort=Alphabetical&txtCriteria=atomic+clock&lngWId=1
> >
> > --
> > Ken Halter - MS-MVP-VB - http://www.vbsight.com
> > DLL Hell problems? Try ComGuard - http://www.vbsight.com/ComGuard.htm
> > Please keep all discussions in the groups..
> >
> >
>
>


.



Relevant Pages

  • Re: How to access individual bits in registers ?
    ... Well, the source code is below, and after that the compile-time error ... integer tail; ... always @ (posedge clock) ... My basic problem is how do I access individual bits in a register, ...
    (comp.lang.verilog)
  • Re: NTP Performance on WINNT
    ... like some kind of hardware setup to measure time offset ... You need access to the source code of the clock interrupt service routine and the ability to directly right to something like a parallel port if you want to measure the true offset. ... Another option might be to install some sort of clock card that can be read through a low latency device driver, but then you would be better using that synchronised clock card, rather than the software clock, for your timing. ...
    (comp.protocols.time.ntp)
  • Re: need a stopwatch
    ... > but I'm having a really hard time finding the source code. ... As far as portable timing goes, you basically only have two choices: ... timeand clock(). ...
    (alt.comp.lang.learn.c-cpp)
  • Re: test
    ... fix your damn clock ... Lits Slut #9 ... Life would be so much easier if we could just look at the source code. ...
    (rec.woodworking)
  • Re: A New Test may alter Time Dilation Law !
    ... > accelerations/deceleration tests for the same plane? ... I personally would tend to believe that the gravity field of both EARTH ... AND THE ATOMIC CLOCK may perhaps somewhat be similar to magnetic field ...
    (sci.physics.relativity)