Digital Workshop

Welcome to the Digital Workshop Message Boards
It is currently December 23rd, 2024, 4:38 am

All times are UTC [ DST ]




Post new topic Reply to topic  [ 4 posts ] 
Author Message
 Post subject: Using Clocks
PostPosted: June 27th, 2007, 8:18 pm 
Offline
Godlike
Godlike
User avatar

Joined: March 21st, 2007, 10:44 am
Posts: 3188
Location: UK
Opus: Evolution
Does anyone know if it's possilbe to set a clock (not the system one) to a specific time. I've seen the setMinutes etc but these appear to relate to date rather than a clock object...or am I confusing things.

Cheers

Mack

_________________
When you have explored all avenues of possibilities, what ever remains, how ever improbable, must be the answer.

Interactive Solutions for Business & Education
Learn Anywhere. Learn Anytime.

www.interaktiv.co.uk
+44 (0) 1395 548057


Top
 Profile Visit website  
 
 Post subject:
PostPosted: June 27th, 2007, 10:18 pm 
Offline

Joined: November 25th, 2004, 1:24 pm
Posts: 512
Location: Scotland
Opus: 9.75
OS: Win 10
System: Asus i7-7700K 16Gb
reading the Date script functions, you should be able to create MyDate= new Date(), then use set and get methods to control it. I assume it will then increment like the system date, but I haven't tried it :-)

_________________
Whoever designed this, never actually used it!


Top
 Profile  
 
 Post subject:
PostPosted: June 28th, 2007, 8:24 am 
Offline
Godlike
Godlike
User avatar

Joined: March 21st, 2007, 10:44 am
Posts: 3188
Location: UK
Opus: Evolution
Cheers for the idea.

I tried but the date is static and has to be incremented manually. Even in a basic loop, with a wait(1), the clock would lose a fraction of a second every minute.

Mack

_________________
When you have explored all avenues of possibilities, what ever remains, how ever improbable, must be the answer.

Interactive Solutions for Business & Education
Learn Anywhere. Learn Anytime.

www.interaktiv.co.uk
+44 (0) 1395 548057


Top
 Profile Visit website  
 
 Post subject:
PostPosted: June 28th, 2007, 12:11 pm 
Offline
Godlike
Godlike
User avatar

Joined: March 21st, 2007, 10:44 am
Posts: 3188
Location: UK
Opus: Evolution
Solved.

Started a ticker on page show. Use a control variable to pause / tick. When CV is set to tick, 1 is added to a variable. Thus the variable counts up at a speed of 1 sec.

Created a base 10 to base 60 convertor. Used a constant expression that passed based 10 to aforementioned function and return a formated base 60 expression. Works great and solved my saving the clock problem.

Hope this helps someone else.

Mack.

_________________
When you have explored all avenues of possibilities, what ever remains, how ever improbable, must be the answer.

Interactive Solutions for Business & Education
Learn Anywhere. Learn Anytime.

www.interaktiv.co.uk
+44 (0) 1395 548057


Top
 Profile Visit website  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 4 posts ] 

All times are UTC [ DST ]


Who is online

Users browsing this forum: No registered users and 34 guests


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 post attachments in this forum

Search for:
Jump to:  
cron
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group