ID:146292
 
Code:
world
New()
log = file("Log.htm")
log += "World opened at [time2text(timeofday())]"
Del()
log << "World closed at [time2text(world.timeofday())]"


Problem description:

It doesn't like my proc inside the "time2text" proc

I tried a lot of things here: I tried using both timeofday and realtime, I tried putting "world." before them both (even though I shouldn't need it), and I tried changing += to >> but that didn't help either. I also tried taking out time2text because I wasn't sure if I needed it or not.
timeofday isn't a proc, it's a variable. I tested following 2:

mob
verb
Time()
world<<"[time2text(timeofday)]" //Didn't work


mob
verb
Time()
world<<"[time2text(world.timeofday)]" //Did work


I'm not sure why, but you do need the world accessor in front of timeofday. I'm sure someone else will explain why.

P_S
In response to Prodigal Squirrel
That's because I used it in /world/New(), and you're using it in a verb.

But yes, it does work now =)