Subj : posix strftime To : Maurice Kinal From : tony summerfelt Date : Thu Mar 10 2005 11:26 am # On Wed, Mar 09/05 at 08:22 AM, Maurice Kinal wrote to tony summerfelt: ts>> strftime has plenty of options %R would also work... MK> I missed that. I'll have to check it out. %R is portable? actually i meant %T because you had the seconds, but yeah, anything strftime compatible should be portable (all those work for both ruby and tcl also) ts>> it's too bad that perl doesn't have one inclusive module for ts>> strftime handling. MK> Is that a Perl problem or a Activestate thingy? it's a perl problem...although activestate makes it fairly easy to install modules, they aren't always uptodate OR complete compared to cpan. cpan is a better choice for linux users, while activestate's ppm is a much better choice for windows users. when ever i need to do any heavy duty manipulation with time, i usually turn to tcl or ruby. those two languages have the functionality built in and you don't need to install 3 or 4 modules to do everything you want... MK> As far as I am aware MK> the module is a standard feature with the regular Perl. yes, but other modules aren't. i've referring to the over 350 date and time modules available on activestates ppm respository or cpan they are usually full modules for something that can be done in a few lines of code in tcl or ruby. MK> but I think it is fun concentrating on Fido and MK> seeing how we can bring this network up to speed without altering the MK> actual network and letting sleeping dogs lie with all their MK> abandonware they seem to love so much. :-) realizing of course, it's mostly abandonware keeping fido still running. anything 'new' still has to get by whatever fidoghods still left controlling things... MK> I have yet to check ruby out. I am not much of an OO guy. you can write procedural code in ruby. there's no reason to design any classes. etc. in perl you open a file and read through it like: open (fh, "") while() { # do something with $_ } in ruby it's: fh=File.open("" fh.each {|line| # do something with 'line' } once you get used to 'everything is an object' in ruby things go pretty quick. MK> Having said that, I probably will at least check it out as I am a MK> real sucker for things like that. the only reasons i'm working with ruby lately (ok, other than not having to do things in python). is the time manipulation, and the threading. nothing extra to install...whichm means the code will run all the way down to dos systems... ..t .... telnet://ventedspleen.dyndns.org --- GoldED/spleen 3.0.1+ * Origin: ventedspleen.dyndns.org (1:249/100) .