Re: moredates.e
- Posted by Al Getz <Xaxo at aol.com> Aug 16, 2005
- 513 views
don cole wrote: > > I cleaned up and re-uploaded my version of Moredates. > > I would like some people to try it and look for bugs. > > It has three simple routines: > > data={years,months,days,hours,minuets,seconds} > > 1) data= getTimePassed(00/00/00,00:00:00) -time after event > > 2) data= get_countdown(00/00/00,00:00:00) --time until event > > 3) day= getday(00/00/00) --returns "Monday" etc. for a date in the future. > > I didn't do dates for the past because I figure if the day has passed you > already know what day it was. > > Can be used with Windows Dos Linux etc... > > > Coments welcome, > Don Cole > SF > Hi again Don, I took a look at your dates program and a problem came up. When i ran the demo, i got an Eu error: "can't find mylog.e in...(various directories)" After remming out 'mylog.e' it ran ok however and looks kinda neat when it's running :) Perhaps you can rem that out or include the file? I tried a few of the functions and they seemed to work ok, but there was no help file so i didnt know what you expected from all those function calls. If there was a help file that described all the function calls (or at least the main ones) i think it would be much easier to use. It might also help to list the allowable input parameters and limitations, and perhaps even what some of your goals where with this lib. Just an idea... The function "getSecToMin(atom secs)" might be faster if you replace it with some Eu's functions: function getSecToMin(atom secs) integer mins mins=floor(secs/60) secs=secs-mins*60 return (mins,secs}--sprintf too if you like. end function but i didnt know what the max secs the function might receive. Take care, Al And, good luck with your Euphoria programming! My bumper sticker: "I brake for LED's"