From owner-freebsd-questions Tue May 25 9:39:39 1999 Delivered-To: freebsd-questions@freebsd.org Received: from cc942873-a.ewndsr1.nj.home.com (cc942873-a.ewndsr1.nj.home.com [24.2.89.207]) by hub.freebsd.org (Postfix) with ESMTP id 8DA3314D51 for ; Tue, 25 May 1999 09:39:35 -0700 (PDT) (envelope-from cjc@cc942873-a.ewndsr1.nj.home.com) Received: (from cjc@localhost) by cc942873-a.ewndsr1.nj.home.com (8.9.3/8.8.8) id MAA07090 for freebsd-questions@FreeBSD.ORG; Tue, 25 May 1999 12:39:55 -0400 (EDT) (envelope-from cjc) From: "Crist J. Clark" Message-Id: <199905251639.MAA07090@cc942873-a.ewndsr1.nj.home.com> Subject: 'date -f' question To: freebsd-questions@FreeBSD.ORG (FreeBSD Questions) Date: Tue, 25 May 1999 12:39:55 -0400 (EDT) Reply-To: cjclark@home.com X-Mailer: ELM [version 2.4ME+ PL40 (25)] MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG I was trying to set the date using UNIX epoch time. I do not understand why something like the following is producing this error, # date -f "%s" 927065401 Warning: Ignoring 9 extraneous characters in date string (927065401) May 25 12:27:17 pc252 date: date set by cjc Tue May 25 12:27:17 EDT 1999 Just so you know, # date -r 927065401 Tue May 18 18:10:01 EDT 1999 So 'date' is not actually setting the time to what I ask. To figure out how to use the '-f' option on date, one must decipher the date(1), strptime(3), and strftime(3) manpages. Did I do so improperly? I think the first usage of date should work. What am I missing here? Thanks. -- Crist J. Clark cjclark@home.com To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message