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 


ALARM type TIMERs in VDS6

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


Joined: 28 Jan 2005
Posts: 112
Location: Brisbane, Australia

PostPosted: Sat Jan 05, 2008 12:34 am    Post subject: ALARM type TIMERs in VDS6 Reply with quote

I have also posted this in the new DialogScript forums at http://www.dialogscript.com/index.php?option=com_fireboard&Itemid=62&func=view&catid=10&id=49#49 . As it's not purely a bug report I decided to post it here as well as I'm not sure how many VDS users are regularly visiting the new forum yet.

Looking at the changes to the TIMER command in VDS6, it doesn't appear to me to be as intuitive as it could be. To explain...

The values are now specified as floating-point values compatible with the @DATETIME function... this seems a good change to me. In the Help file, the values for the types CHRONO and CTDOWN are specified as so: 'The is the timer period'. This makes sense as these types are counting up to, or down from, a period of time.

However, the ALARM type doesn't work as I would now expect it to. The Help file says, 'The is the alarm time', but strictly speaking it isn't. If I wanted to set an ALARM type timer to trigger at 6:00pm today (5 Jan 2008) I would expect to be able to use the command 'TIMER START,1,ALARM,39452.75' as 39452.75 is the VDS time for 6:30pm on 5 Jan 2008. But I can't use that command, I have to specify it as 'TIMER START,1,ALARM,0.75'. In other words, I have to specify the fractional part only.

It seems that the integer portion of the time value specifies the number of days relative to today (ie. 0 = today, 1 = tomorrow etc.) whereas the fractional part of the time value specifies the time-of-day.

Hopefully someone can clarify HOW the ALARM type actually works, and why the parameter isn't strictly the VDS floating-point value.

Regards.

_________________
John Trappett
Back to top
View user's profile Send private message
vdsalchemist
Admin Team


Joined: 23 Oct 2001
Posts: 1448
Location: Florida, USA

PostPosted: Mon Jan 07, 2008 1:51 pm    Post subject: Reply with quote

Trapper,
Please do not double post. CR is monitoring both forums, however if you double post then we will be wasting time trying to answer both posts and will not be able to answer all posts in a timely manner.

_________________
Home of

Give VDS a new purpose!
Back to top
View user's profile Send private message Visit poster's website AIM Address Yahoo Messenger MSN Messenger
jules
Professional Member
Professional Member


Joined: 14 Sep 2001
Posts: 1043
Location: Cumbria, UK

PostPosted: Tue Jan 08, 2008 12:50 pm    Post subject: Reply with quote

Off the top of my head (since I can't remember, and don't have the VDS 6 source code to look at) I think the reason might be that an alarm can reoccur at the same time each day. It is not a one-shot timer that alarms once and that's the end of it.
_________________
The Tech Pro
www.tech-pro.net
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