Date: Tue, 25 May 1999 12:39:55 -0400 (EDT) From: "Crist J. Clark" <cjc@cc942873-a.ewndsr1.nj.home.com> To: freebsd-questions@FreeBSD.ORG (FreeBSD Questions) Subject: 'date -f' question Message-ID: <199905251639.MAA07090@cc942873-a.ewndsr1.nj.home.com>
next in thread | raw e-mail | index | archive | help
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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199905251639.MAA07090>