Path: utzoo!utgpu!jarvis.csri.toronto.edu!mailrus!sharkey!oxtrap!mudos!mju From: mju@mudos.ann-arbor.mi.us (Marc Unangst) Newsgroups: comp.binaries.ibm.pc.d Subject: Re: Good date programs Message-ID: <405.2471CB81@mudos.ann-arbor.mi.us> Date: 17 May 89 19:32:28 GMT References: <24501@agate.BERKELEY.EDU> Reply-To: mju@mudos.ann-arbor.mi.us Organization: A neat desk is a sign of a crazy person. Lines: 36 In article <24501@agate.BERKELEY.EDU>, ked@garnet.berkeley.edu (Earl H. Kinmonth) writes: >The MKS Toolkit also gives you lots of other goodies like the korn shell, >a more that is useful, a complete version of vi, etc., etc. I can't think >of any piece of MSDOS software that his a higher utility/price ratio than >MKS. Maybe the set of PiCnix utilities? Their cost is zero, and (although they don't include the "heavyweight" program like vi or ksh), they do include versions of grep, ls, rm, touch, mv, etc. They also include "ndate" (can't be called "date" because of name conflicts with DOS), which is just like the Unix version of "date". You could also write a short C program to do this. (Disclaimer: This should work with Turbo C. Although the Turbo C Bible says that all the functions used are compatable with MSC, QuickC, Unix SysV C, and ANSI C, your milage may vary.) #include #include void main(void); void main() { printf("%s\n",ctime(time((time_t *) NULL))); } This simply prints the date and time in the form Wed May 17 15:39:36 1989 -- Marc Unangst UUCP smart : mju@mudos.ann-arbor.mi.us UUCP dumb : ...!uunet!sharkey!mudos!mju UUCP dumb alt.: ...!{ames,rutgers}!mailrus!clip!mudos!mju Internet : mju@mudos.ann-arbor.mi.us