🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: pl.comp.os.linux.programowanie
Article #72764

Re: Dokładniejszy czas niż 4 bajtowy

#72764
From: Sebastian Biały
Date: Sat, 21 Nov 2015 20:46
13 lines
1522 bytes
On 2015-11-21 21:40, Borneq wrote:
>>> czy gettimeofday() radzi sobie z rokiem 2038?
>> To zależy jak *twój* system definiuje time_t.
> To nie zawsze 4 bajty?

To rzadko kiedy jest 4 bajty.

> Pytanie, jakiej długości zwraca gettimeofday() ?

Sprawdź sizeof(time_t). Idę o zakład ze będzie to 64 bity jesli system 
jest współczesny.

http://stackoverflow.com/questions/471248/what-is-ultimately-a-time-t-typedef-to
Technical Details
Message-ID: <n2ql8b$sr3$1@node1.news.atman.pl>
Path: mbox-mo1.pugleaf.net!news-archive.icm.edu.pl!agh.edu.pl!news.agh.edu.pl!newsfeed2.atman.pl!newsfeed.atman.pl!.POSTED!not-for-mail
References: <n2qi8t$tsn$1@node2.news.atman.pl> <n2qj7e$qer$2@node1.news.atman.pl> <n2qk6d$ri3$1@node1.news.atman.pl> <n2qkgr$b7$1@node2.news.atman.pl> <n2qkri$sh2$1@node1.news.atman.pl>

Show Full Headers
Complete Article Headers
Path: mbox-mo1.pugleaf.net!news-archive.icm.edu.pl!agh.edu.pl!news.agh.edu.pl!newsfeed2.atman.pl!newsfeed.atman.pl!.POSTED!not-for-mail
From: Sebastian Biały <heby@poczta.onet.pl>
Newsgroups: pl.comp.os.linux.programowanie
Subject: Re: Dokładniejszy czas niż 4
 bajtowy
Date: Sat, 21 Nov 2015 21:46:43 +0100
Organization: ATMAN - ATM S.A.
Lines: 14
Message-ID: <n2ql8b$sr3$1@node1.news.atman.pl>
References: <n2qi8t$tsn$1@node2.news.atman.pl> <n2qj7e$qer$2@node1.news.atman.pl> <n2qk6d$ri3$1@node1.news.atman.pl> <n2qkgr$b7$1@node2.news.atman.pl> <n2qkri$sh2$1@node1.news.atman.pl>
NNTP-Posting-Host: 176-115-85-233.via.zamek.net.pl
Mime-Version: 1.0
X-Trace: node1.news.atman.pl 1448138827 29539 176.115.85.233 (21 Nov 2015 20:47:07 GMT)
X-Complaints-To: usenet@atman.pl
NNTP-Posting-Date: Sat, 21 Nov 2015 20:47:07 +0000 (UTC)
User-Agent: Mozilla/5.0 (Windows NT 6.0; rv:38.0) Gecko/20100101 Thunderbird/38.3.0
In-Reply-To: <n2qkri$sh2$1@node1.news.atman.pl>
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit