forum.vdsworld.com Forum Index forum.vdsworld.com
Visit VDSWORLD.com
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 


Setting the system clock without internet

 
Post new topic   Reply to topic    forum.vdsworld.com Forum Index -> General Help
View previous topic :: View next topic  
Author Message
vtol
Valued Contributor
Valued Contributor


Joined: 05 Feb 2004
Posts: 656
Location: Eastern Indiana

PostPosted: Mon Oct 29, 2007 5:37 am    Post subject: Setting the system clock without internet Reply with quote

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 Laughing
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 Cool
Back to top
View user's profile Send private message Visit poster's website
vtol
Valued Contributor
Valued Contributor


Joined: 05 Feb 2004
Posts: 656
Location: Eastern Indiana

PostPosted: Mon Oct 29, 2007 8:42 am    Post subject: Reply with quote

Never mind, I got it working perfectly.

In the VDSTIME manual, the below looked backwards in my backward mind Insane
@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 Very Happy Thanks Tommy for awsesome VDSTIME
Back to top
View user's profile Send private message Visit poster's website
Display posts from previous:   
Post new topic   Reply to topic    forum.vdsworld.com Forum Index -> General Help All times are GMT
Page 1 of 1

 
Jump to:  
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

Twitter@vdsworld       RSS

Powered by phpBB © 2001, 2005 phpBB Group