From mboxrd@z Thu Jan 1 00:00:00 1970 Message-ID: <96079038515667.tru64-unix-managers.marc@archive.invalid> From: Salvador Ramirez Date: Sat, 13 Mar 1999 18:45:27 +0000 To: tru64-unix-managers Subject: SUMMARY: localtime(3) function output not Y2K compatible? X-MARC-Message: https://marc.info/?l=tru64-unix-managers&m=96079038515667 My question was about the output of localtime(3) function which on the field tm_year of the tm struct (defined in time.h) it return (at this time) 99 instead of 1999. What happens there is that the localtime(3) function return the year substracted of 1900, so the you should add 1900 to tm_year in order to get a complete year description. For example in the year 2003 you will get 103 and so on.. Thanks to: Peter Prymmer Peter Chapin Alan Rollow Matt Moore John Hascall Peter Olson ---sram If God does not exist, it would be necessary to invent him --Voltaire Salvador Ramirez Flandes PROFC, Universidad de Concepcion, CHILE http://www.profc.udec.cl/~sram mailto:sram@profc.udec.cl