Re: Need script to retrieve time
- From: "BeastFish" <beastfish@xxxxxxxxxxxxxxxxx>
- Date: Wed, 6 Jul 2005 18:33:11 -0400
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..
> >
> >
>
>
.
- References:
- Re: Need script to retrieve time
- From: BarryS
- Re: Need script to retrieve time
- Prev by Date: Reszing form highlights combo box
- Next by Date: Re: Adding a VB6 module to a VB.NET project
- Previous by thread: Re: Need script to retrieve time
- Next by thread: Nonmodal form on Modal form?
- Index(es):
Relevant Pages
|