Article View: es.comp.os.linux.programacion
Article #10152Re: Hora del sistema
From: Xavier Montero
Date: Sat, 30 Mar 2002 11:25
Date: Sat, 30 Mar 2002 11:25
17 lines
1640 bytes
1640 bytes
> En c standard. > Necesito saber como sacar la hora actual del sistema en formato del numero > que cuenta los segundos desde 1-1-1970. > Sin tener que decirle al programa hoy es 29-3-2002 son las 15:52:23... time_t time ( time_t * timer ); Get current time. Get the number of seconds elapsed since 00:00 hours, Jan 1, 1970 UTC from the system clock. Es la referencia de la librer�a est�ndard time.h Puedes encontrar m�s info aqu�: http://www.cplusplus.com/ref/ctime/ Es la segunda entrada que me ha salido en el google al buscar "time.h". Saludos! Xavi.
Technical Details
Message-ID:
<3CA5A0A8.94EFAF55@dsitelecom.com>Path:
arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!newsfeed.stanford.edu!news-spur1.maxwell.syr.edu!news.maxwell.syr.edu!newsfeed.icl.net!newsfeed.icl.net!news.tele.dk!small.news.tele.dk!130.133.1.3!fu-berlin.de!uni-berlin.de!213-97-61-212.uc.nombres.ttd.ES!not-for-mailReferences:
<pan.2002.03.29.16.28.21.711.1481@jazzfree.com>Show Full Headers
Complete Article Headers
X-Google-Language: SPANISH,ASCII X-Google-Thread: f86c8,9d760c9218ab012a X-Google-Attributes: gidf86c8,public X-Google-ArrivalTime: 2002-03-30 03:26:39 PST Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!newsfeed.stanford.edu!news-spur1.maxwell.syr.edu!news.maxwell.syr.edu!newsfeed.icl.net!newsfeed.icl.net!news.tele.dk!small.news.tele.dk!130.133.1.3!fu-berlin.de!uni-berlin.de!213-97-61-212.uc.nombres.ttd.ES!not-for-mail From: Xavier Montero <xmontero@dsitelecom.com> Newsgroups: es.comp.os.linux.programacion Subject: Re: Hora del sistema Date: Sat, 30 Mar 2002 12:25:28 +0100 Organization: Digital Sound Items Lines: 17 Message-ID: <3CA5A0A8.94EFAF55@dsitelecom.com> References: <pan.2002.03.29.16.28.21.711.1481@jazzfree.com> NNTP-Posting-Host: 213-97-61-212.uc.nombres.ttd.es (213.97.61.212) Mime-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: 8bit X-Trace: fu-berlin.de 1017487595 26615465 213.97.61.212 (16 [85345]) X-Mailer: Mozilla 4.77 [en] (Windows NT 5.0; U) X-Accept-Language: en