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
Grae
Beginner


Joined: 21 May 2006
Posts: 11

PostPosted: Thu Feb 01, 2007 10:38 pm   

Evaluating Dates in Zmud
 
Basically I want to take 2 dates & times and calculated the # of months/days/minutes/seconds between the two. So far the only scripts I've seen use a long series of calculations to do them. I'd prefer something simpler. I also know there's a VBscript command datediff() but I am unsure how to use it to get it working. Any suggestions?
Reply with quote
gamma_ray
Magician


Joined: 17 Apr 2005
Posts: 496

PostPosted: Fri Feb 02, 2007 1:35 am   
 
I can almost guarantee that VB internally does a long series of calculations anyway, so what it seems like you want is a simple way to -call- the long series of calculations, yes? If so, you can easily set up a function in ZMud that does it for you with just a single call. You'll need to explain what format your dates are coming in, though, and what format you want the answers in.
Reply with quote
Grae
Beginner


Joined: 21 May 2006
Posts: 11

PostPosted: Fri Feb 02, 2007 1:37 am   
 
I can put the date format in any of the %time formats that zmud has, output eventually will be split into days/weeks/hrz/mins etc but if i got it as a cumulative hrs/mins that would be sufficent that i could work from there
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