|
fattony Apprentice
Joined: 27 Dec 2001 Posts: 105 Location: USA
|
Posted: Wed Jun 26, 2002 3:06 am
Alarm |
I have an alarm that ticks every second to emulate basically the same function as %ctime.
#ALARM "ConnectTimer" -*:*:* {connect = %eval( (%time( d)*60*60*24)+(%time( h)*60*60)+(%time( n)*60)+%time( s))}
Yet it isn't working. Any idea why?
Fat Tony |
|
|
|
MattLofton GURU
Joined: 23 Dec 2000 Posts: 4834 Location: USA
|
Posted: Thu Jun 27, 2002 12:23 am |
quote:
I have an alarm that ticks every second to emulate basically the same function as %ctime.
#ALARM "ConnectTimer" -*:*:* {connect = %eval( (%time( d)*60*60*24)+(%time( h)*60*60)+(%time( n)*60)+%time( s))}
Yet it isn't working. Any idea why?
Fat Tony
Illegal syntax. Instead of *:*:*, you'll want to use the modulus syntax (*1, for example, would fire every second).
If you're getting erroneous values, I suppose it's that monster you're trying to assign to @Connect. What's the purpose of all that multiplication?
li'l shmoe of Dragon's Gate MUD |
|
|
|
LightBulb MASTER
Joined: 28 Nov 2000 Posts: 4817 Location: USA
|
Posted: Thu Jun 27, 2002 12:31 am |
The real question might be, "Why do you think you need to do this?" You can get the same value, whenever desired, from the %eval you are already using. It's hard to see much value in computing it every second. This isn't connect time anyway, it's just the number of elapsed seconds in the month.
LightBulb
Senior Member |
|
|
|
|
|