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 


VDS 6, Timer, Datetime confusion

 
Post new topic   Reply to topic    forum.vdsworld.com Forum Index -> General Help
View previous topic :: View next topic  
Author Message
Garrett
Moderator Team


Joined: 04 Oct 2001
Posts: 2149
Location: A House

PostPosted: Mon Mar 22, 2010 6:32 pm    Post subject: VDS 6, Timer, Datetime confusion Reply with quote

Ok, I'm confused on how to set a CTDOWN timer in VDS 6 since it requires the binary time instead of the older datetime format style. My problem is that my crusty old brain isn't clicking on how to use @datetime() in conjunction in setting the timer.

Code:
TIMER START,1,CTDOWN,@datetime(??????)


How do I get datetime to tell the timer I want 2 minutes?

Thanks,
~Garrett

_________________
'What you do not want done to yourself, do not do to others.' - Confucius (550 b.c. to 479 b.c.)
Back to top
View user's profile Send private message
cabaptista
Newbie


Joined: 14 Mar 2010
Posts: 21
Location: Lisbon, Portugal

PostPosted: Tue Mar 23, 2010 9:50 am    Post subject: Reply with quote

Hi Garret,

Maybe what you need is this:

Code:
TIMER START,1,CTDOWN,@DATETIME(,00:02:00)


Wink

Please check timers.dsp example on demos for VS6 and search for line

Code:
timer start,2,Ctdown,@fadd(@dlgtext(CTDOWNdays),@datetime(,@dlgtext(CTDOWNhour):@dlgtext(CTDOWNminutes):@dlgtext(CTDOWNseconds)))


Hope it helped. Wink

_________________
César Baptista, Portugal
NavegaçãoAzul.com
Back to top
View user's profile Send private message Send e-mail Visit poster's website
Rubes_sw
Valued Contributor
Valued Contributor


Joined: 11 Jun 2001
Posts: 625
Location: Northern Ireland

PostPosted: Tue Mar 23, 2010 10:07 am    Post subject: Reply with quote

VDS 6:

Code:

timer start,1,Ctdown,@fadd(A,@datetime(,B:CC:DD))

so

timer start,1,Ctdown,@fadd(0,@datetime(,0:05:00))



A = Days
B = Hours
CC = Minutes
DD = Seconds

Will be a :Timer1CTDown in 5 minutes

regards

Nathan
Back to top
View user's profile Send private message Send e-mail Visit poster's website
Garrett
Moderator Team


Joined: 04 Oct 2001
Posts: 2149
Location: A House

PostPosted: Tue Mar 23, 2010 3:59 pm    Post subject: Reply with quote

Cabaptista, thanks, but I did note VDS 6 which uses a different method than VDS 5. Rubes got it.. Thanks to both of you Smile
_________________
'What you do not want done to yourself, do not do to others.' - Confucius (550 b.c. to 479 b.c.)
Back to top
View user's profile Send private message
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