Path: utzoo!utgpu!jarvis.csri.toronto.edu!rutgers!cmcl2!dasys1!jpr From: jpr@dasys1.UUCP (Jean-Pierre Radley) Newsgroups: comp.unix.questions Subject: Re: Getting UNIX time from the shell Message-ID: <10030@dasys1.UUCP> Date: 24 Jun 89 13:43:29 GMT References: <1343@cbnewsh.ATT.COM> <10800028@bradley> Reply-To: jpr@dasys1.UUCP (Jean-Pierre Radley) Organization: TANGENT Lines: 16 In article <10800028@bradley> vijay@bradley.UUCP writes: >You do not need to write a C program to do that. A one liner >shell command will do it for you (In C Shell or Bourne Shell). >All you need is : > > date | cut -f4,5 -d" " > I never use two processes where one will do. date +%T gives me the time. (Oh well, so it doesn't give me my timezone, but that's really an invariant, no?) -- Jean-Pierre Radley CIS: 72160,1341 jpr@jpradley.UUCP