From owner-freebsd-questions Mon Aug 16 15:46: 8 1999 Delivered-To: freebsd-questions@freebsd.org Received: from devsys.jaguNET.com (devsys.jaguNET.com [206.156.208.6]) by hub.freebsd.org (Postfix) with ESMTP id 9422F154DE for ; Mon, 16 Aug 1999 15:46:05 -0700 (PDT) (envelope-from jim@jaguNET.com) Received: (from jim@localhost) by devsys.jaguNET.com (8.9.3/jag-2.6) id SAA21886; Mon, 16 Aug 1999 18:45:26 -0400 (EDT) From: Jim Jagielski Message-Id: <199908162245.SAA21886@devsys.jaguNET.com> Subject: Re: FreeBSD not Y2K compliant? To: elgreen@iname.com (Eric Lee Green) Date: Mon, 16 Aug 1999 18:45:26 -0400 (EDT) Cc: freebsd-questions@FreeBSD.ORG Reply-To: jim@jaguNET.com In-Reply-To: <99081615412000.35190@ehome.local.net> from "Eric Lee Green" at Aug 16, 99 03:35:06 pm X-Mailer: ELM [version 2.4 PL25] Content-Type: text Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG int tm_year; /* year - 1900 */ It's supposed to do that. Eric Lee Green wrote: > > 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 > -- =========================================================================== Jim Jagielski ||| jim@jaguNET.com ||| http://www.jaguNET.com/ "That's no ordinary rabbit... that's the most foul, cruel and bad-tempered rodent you ever laid eyes on" To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message