From owner-freebsd-questions Mon Aug 16 15:41:44 1999 Delivered-To: freebsd-questions@freebsd.org Received: from mail.rdc1.az.home.com (ha1.rdc1.az.home.com [24.1.240.66]) by hub.freebsd.org (Postfix) with ESMTP id 417461553E for ; Mon, 16 Aug 1999 15:41:42 -0700 (PDT) (envelope-from elgreen@iname.com) Received: from ehome.local.net ([24.9.114.169]) by mail.rdc1.az.home.com (InterMail v4.01.01.00 201-229-111) with SMTP id <19990816224208.KHZW27077.mail.rdc1.az.home.com@ehome.local.net> for ; Mon, 16 Aug 1999 15:42:08 -0700 From: Eric Lee Green Organization: Myself @ Home To: freebsd-questions@freebsd.org Subject: FreeBSD not Y2K compliant? Date: Mon, 16 Aug 1999 15:35:06 -0700 X-Mailer: KMail [version 1.0.21] Content-Type: text/plain MIME-Version: 1.0 Message-Id: <99081615412000.35190@ehome.local.net> Content-Transfer-Encoding: 8bit Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG The below prints "99" instead of "1999" :-(. AGH! I thought I left that behind with Xenix! #include #include #include int main (int argc,char **argv) { struct *tm t; time_t today; today=time(NULL); t=localtime(&today); printf("Year = %s\n",t->tm_year); } -- Eric Lee Green http://members.tripod.com/e_l_green mail: e_l_green@hotmail.com ^^^^^^^ Burdening Microsoft with SPAM! To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message