| View previous topic :: View next topic |
| Author |
Message |
vtol Valued Contributor


Joined: 05 Feb 2004 Posts: 656 Location: Eastern Indiana
|
Posted: Mon Oct 29, 2007 5:37 am Post subject: Setting the system clock without internet |
|
|
I'm using the VDSTIME a bought a couple years ago and never could figure out how to use the VDSTIME thingys.
Below without any examples anywhere on the forum or packed with the dll examples, I can set the day, but its 1 day late(28th):
%t = @DLL(DTIME, MAKE,29,10,2007,01,27,05,05)
DLL DTIME, SYSTEM,%t
Does any one know how I'm doing this wrong
Thanks for stopping in...
Does VDS5 have a SET system clock built in?
Slapping me silly doesn't help me focus, but it wakes me up  |
|
| Back to top |
|
 |
vtol Valued Contributor


Joined: 05 Feb 2004 Posts: 656 Location: Eastern Indiana
|
Posted: Mon Oct 29, 2007 8:42 am Post subject: |
|
|
Never mind, I got it working perfectly.
In the VDSTIME manual, the below looked backwards in my backward mind
@DLL(DTIME, GMTTOLOCAL, <datetime value>)
Converts the specified VDS compatible date/time value that is in GMT timezone into the computer’s configured local timezone.
@DLL(DTIME, LOCALTOGMT, <datetime value>)
Converts the specified VDS compatible date/time value that is in the computer’s configured local timezone into the GMT timezone.
So after I switched to the one in RED below code works perfect now.
| Code: | external C:\VDS5\DLL\vdsdll.dll,myName|serial
#define command,dll
#define function,dll
DLL DTIME, FIELDSEP,.
dll dtime,decimalsep,.
%t = @DLL(DTIME, MAKE,29,10,2007,4,27,05,05)
%z = @DLL(DTIME, LOCALTOGMT,%t)
DLL DTIME, SYSTEM,%z |
Resolved Thanks Tommy for awsesome VDSTIME |
|
| Back to top |
|
 |
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum You can attach files in this forum You can download files in this forum
|
|