Register to post in forums, or Log in to your existing account
 

Play RetroMUD
Post new topic  Reply to topic     Home » Forums » zMUD General Discussion
TonDiening
GURU


Joined: 26 Jul 2001
Posts: 1958
Location: Canada

PostPosted: Mon Apr 15, 2002 1:34 am   

Time predicting
 
Working with a puzzle:

An event happens and it will be able to
happen again in 28 hours and 20 minutes.

It also means that another event will happen
in 42 hours and x minutes.

And finally another event will happen in 58
hours and 30ish minutes.

What is the easiest way to project the times
of this and report back when it will happen
next and the following cycle.

All I can think of is gregorian/julian date
converters. Convert to #######.######
gregorian date add the time then convert
back to Julian date.

Am I baked and thinking too complicate or?

Ton Diening
Reply with quote
LightBulb
MASTER


Joined: 28 Nov 2000
Posts: 4817
Location: USA

PostPosted: Mon Apr 15, 2002 4:14 am   
 
This might help, depends on what you want to do:

event1 will reoccur in %eval((%time(h)+28+((%time(n)+20)/60))/24) days at %eval((%time(h)+28+((%time(n)+20)/60))24):%if(%eval((%time(n)+20)60)<10,"0"%eval((%time(n)+20)60),%eval((%time(n)+20)60)

LightBulb
Vague questions get vague answers
Reply with quote
TonDiening
GURU


Joined: 26 Jul 2001
Posts: 1958
Location: Canada

PostPosted: Mon Apr 15, 2002 9:04 am   
 
That was what I was looking for.

Thanks LightBulb! I tend to forget that
method of extraction.

Ton Diening
Reply with quote
Display posts from previous:   
Post new topic   Reply to topic     Home » Forums » zMUD General Discussion 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

© 2009 Zugg Software. Hosted by Wolfpaw.net