Article View: es.comp.os.linux.programacion
Article #841Re: como obtener la hora de mi sistema en C
From: Pascal Bourguignon
Date: Sun, 03 Sep 2006 21:51
Date: Sun, 03 Sep 2006 21:51
19 lines
2094 bytes
2094 bytes
"teoria" <teoriaderedes@gmail.com> writes: > Hola se�ores. Estoy haciendo un programa en C y necesito imprimir en > pantalla la hora y fecha de cuando el sistema fue iniciado. Hay alguna > funci�n que me retorne eso? > Tambien necesito imprimir la hora actual en pantalla. > Se me ocurri� que si tenia la hora actual, restandole los segundos de > cuando fue iniciado el sistema, podia obtener la hora de cuando se > inicio el sistema. Pero no me sale. Necesito ayuda! > Saludos! date(1), uptime(1), time(2), gettimeofday(2), etc... -- __Pascal Bourguignon__ http://www.informatimago.com/ "Remember, Information is not knowledge; Knowledge is not Wisdom; Wisdom is not truth; Truth is not beauty; Beauty is not love; Love is not music; Music is the best." -- Frank Zappa
Technical Details
Message-ID:
<87u03oliti.fsf@thalassa.informatimago.com>Path:
arc1-ca.pugleaf.net!g2news2.google.com!news1.google.com!fu-berlin.de!uni-berlin.de!individual.net!not-for-mailReferences:
<1157310184.626614.191070@m79g2000cwm.googlegroups.com>Show Full Headers
Complete Article Headers
X-Google-Thread: f86c8,5b586e9804fa2254
X-Google-Attributes: gidf86c8,public
X-Google-Language: SPANISH,ASCII
Path: arc1-ca.pugleaf.net!g2news2.google.com!news1.google.com!fu-berlin.de!uni-berlin.de!individual.net!not-for-mail
From: Pascal Bourguignon <pjb@informatimago.com>
Newsgroups: es.comp.os.linux.programacion
Subject: Re: como obtener la hora de mi sistema en C
Date: Sun, 03 Sep 2006 23:51:53 +0200
Organization: Informatimago
Lines: 19
Message-ID: <87u03oliti.fsf@thalassa.informatimago.com>
References: <1157310184.626614.191070@m79g2000cwm.googlegroups.com>
Mime-Version: 1.0
Content-Type: text/plain; charset=iso-8859-1
Content-Transfer-Encoding: 8bit
X-Trace: individual.net 67GsjZyRZEJsYoKcC72UAQlmew3+u/goOh01oBOF7NloyEg+4m
Face: iVBORw0KGgoAAAANSUhEUgAAADAAAAAwAQMAAABtzGvEAAAABlBMVEUAAAD///+l2Z/dAAAA
oElEQVR4nK3OsRHCMAwF0O8YQufUNIQRGIAja9CxSA55AxZgFO4coMgYrEDDQZWPIlNAjwq9
033pbOBPtbXuB6PKNBn5gZkhGa86Z4x2wE67O+06WxGD/HCOGR0deY3f9Ijwwt7rNGNf6Oac
l/GuZTF1wFGKiYYHKSFAkjIo1b6sCYS1sVmFhhhahKQssRjRT90ITWUk6vvK3RsPGs+M1RuR
mV+hO/VvFAAAAABJRU5ErkJggg==
X-Accept-Language: fr, es, en
X-Disabled: X-No-Archive: no
User-Agent: Gnus/5.11 (Gnus v5.11) Emacs/22.0.50 (gnu/linux)
Cancel-Lock: sha1:Uz9Jeony0xaSgmypeOisvJlzRtg=