[Date Prev][Date Next][Thread Prev][Thread Next] [Search] [Date Index] [Thread Index]

Re: [MacPerl] going backwards



The only reason I'm using an array is that that's the way it's currently set up and being lazy don't want to go back and chnge it. There are some other places where I'd like to do a simmiler thing with a hash. The idea of the script (actualy a module for calculating in-game time for this one game)...

--takes seconds since epoch given as per time function
--translates that into gametime. different output styles such as "Tuesday January 1, year 1", "1/1/1" etc. (hence the inital reason for an array)

most of the subroutines have to do with "get the current gametime", "get the gametime of ..." (where "..." is some number as per time). But there's one which takes a string such as "Tuesday January 1, year 1" and parses it backwards to get the seconds since epoch for that particular gametime. (basically undoing the time to string subroutines)

le meas,
--Nick
# ===== Want to unsubscribe from this list? # ===== Send mail with body "unsubscribe" to macperl-request@macperl.org