Re: mud time

From: Damian Jurzysta (interact@hem.passagen.se)
Date: 03/14/00


Hello George.

On 14-Mar-00, you wrote:

GG>> exactly how is this value calculated? what decides the year, day, month
GG>> and current tick?
GG>
GG> I think[1] it's in seconds since 1970 but modified according to the
GG> time rules in utils.h.

my mud uses these timerules:

#define SECS_PER_MUD_HOUR    60
#define SECS_PER_MUD_DAY     (24*SECS_PER_MUD_HOUR)
#define SECS_PER_MUD_MONTH   (30*SECS_PER_MUD_DAY)
#define SECS_PER_MUD_YEAR    (12*SECS_PER_MUD_MONTH)

so, according to you I should set beginning_of_time to 12*30*24*60*1100 if I
want the mudyear to start at 1100. this equals 570240000. but when I set
beginning_of_time to 570240000 I get a mudyear of 1777 upon reboot.
--
/Damian/


     +------------------------------------------------------------+
     | Ensure that you have read the CircleMUD Mailing List FAQ:  |
     |  http://qsilver.queensu.ca/~fletchra/Circle/list-faq.html  |
     +------------------------------------------------------------+



This archive was generated by hypermail 2b30 : 04/10/01 PDT