Path: utzoo!utgpu!jarvis.csri.toronto.edu!clyde.concordia.ca!uunet!aplcen!haven!uvaarpa!mmdf From: mntgfx!lisch@uunet.uu.net (Ray Lischner) Newsgroups: comp.lang.perl Subject: re: reverse of localtime() Message-ID: <2919@uvaarpa.virginia.edu> Date: 1 Mar 90 01:19:22 GMT Sender: mmdf@uvaarpa.virginia.edu Reply-To: mntgfx!lisch@uunet.uu.net Lines: 17 Paul E. Maisano writes: > My unix manual (on SUN/OS) says there is a timelocal() function. > Is this a worthwhile addition to perl ? I can't see a simple way of > doing it in perl. > > I was originally going to write the program in C for speed reasons but > I think perl would be fast enough. > > I don't really want to write it in C but... :-( The timelocal() function is not standard UNIX or ANSI C. My old copy of the ANSI draft mentions mktime() to build a time_t from a struct tm*. Regardless of name, the functionality would be nice to have in Perl. For those (like me) without timelocal(), mktime(), etc., there is a C version of localtime(), timelocal(), ctime(), et al., in the comp.sources.unix archives on UUNET.