Date: Mon, 16 Aug 1999 18:45:26 -0400 (EDT) From: Jim Jagielski <jim@devsys.jaguNET.com> To: elgreen@iname.com (Eric Lee Green) Cc: freebsd-questions@FreeBSD.ORG Subject: Re: FreeBSD not Y2K compliant? Message-ID: <199908162245.SAA21886@devsys.jaguNET.com> In-Reply-To: <99081615412000.35190@ehome.local.net> from "Eric Lee Green" at Aug 16, 99 03:35:06 pm
next in thread | previous in thread | raw e-mail | index | archive | help
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 <stdio.h>
> #include <time.h>
> #include <stdlib.h>
> 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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199908162245.SAA21886>
