Date: Mon, 16 Aug 1999 15:35:06 -0700 From: Eric Lee Green <elgreen@iname.com> To: freebsd-questions@freebsd.org Subject: FreeBSD not Y2K compliant? Message-ID: <99081615412000.35190@ehome.local.net>
next in thread | raw e-mail | index | archive | help
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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?99081615412000.35190>
