Path: utzoo!utgpu!watserv1!watmath!att!cbnewsc!lgm From: lgm@cbnewsc.ATT.COM (lawrence.g.mayka) Newsgroups: comp.lang.misc Subject: Re: Relationship between C and C++ Keywords: portability myth Message-ID: <14602@cbnewsc.ATT.COM> Date: 23 Mar 90 03:16:46 GMT References: <970@mti.mti.com> Reply-To: lgm@cbnewsc.ATT.COM (lawrence.g.mayka,ihp,) Organization: AT&T Bell Laboratories Lines: 20 In article <970@mti.mti.com> adrian@mti.UUCP (Adrian McCarthy) writes: >Exercise for the reader: write a *portable* program in any language which >takes a file name as its parameter and returns the modification or creation >date and time of that file. Don't use any conditional compilation. Common Lisp: (FILE-WRITE-DATE file) 'file' can be a file name or a stream that is open to a file. This returns the time at which the file was created or last written as an integer in universal time format, or NIL if this cannot be determined. Lawrence G. Mayka AT&T Bell Laboratories lgm@ihlpf.att.com Standard disclaimer.