Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 15 Mar 2005 12:15:30 +0100 (CET)
From:      Sten Spans <sten@blinkenlights.nl>
To:        Philip Paeps <philip@freebsd.org>
Cc:        current@freebsd.org
Subject:   Re: [current tinderbox] failure on alpha/alpha
Message-ID:  <Pine.SOC.4.61.0503151211020.20313@tea.blinkenlights.nl>
In-Reply-To: <20050315100007.GF696@loge.nixsys.be>
References:  <20050315092801.840557306E@freebsd-current.sentex.ca> <20050315100007.GF696@loge.nixsys.be>

next in thread | previous in thread | raw e-mail | index | archive | help
On Tue, 15 Mar 2005, Philip Paeps wrote:

>> *** Error code 1
>
> Ugh, looks like I broke this...
>
> Is there a special magical format to use to printf a time_t without having it
> break on at least one of the architectures we support?

The only portable way seems to be strftime.
But almost nobody bothers.

strftime(output, sizeof(output), "%s", gmtime(&data->uptime));

-- 
Sten Spans

"There is a crack in everything, that's how the light gets in."
Leonard Cohen - Anthem



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?Pine.SOC.4.61.0503151211020.20313>