git/list[1] front-page[2] threads[3] people[4] search[5] about
 

Re: [PATCH 0/4] replace unsinged long with time_t

From
Linus Torvalds <torvalds@linux-foundation.org>
Date
Nov 6, 2008, 18:45 UTC
Message-ID
<alpine.LFD.2.00.0811061042530.3419@nehalem.linux-foundation.org>
In-Reply-To
<20081106183722.GL10996@eratosthenes.cryptobackpack.org>
On Thu, 6 Nov 2008, David Bryson wrote:
> 
> I have always thought that time_t and similar were braindead, but hey
> the Janitor page listed it as desireable so what do I know ?
It might be worth it to make the internal git time always be 64-bit.

It was kind of a long-term plan anyway: git doesn't really ever have to work with dates in the future (and things like "approxidate()" actually know that and use it to guess what date you must be talking about), so even a 32-bit "unsigned long" is expected to work well until 2038, but at _some_ point we'd need to guarantee 64-bit epoch times.

It just wasn't something I was in a huge hurry over. Others have to worry about dates from the future long before wrap-around, git really doesn't. But from a janitorial standpoint, I certainly wouldn't totally hate using a known 64-bit type for dates.

			Linus
Previous: David BrysonNext: Daniel Stenberg
Message 8 of 9 in “replace unsinged long with time_t”
  1. 0/4 replace unsinged long with time_tdavid@statichacks.org, Nov 6, 2008
  2. 1/4 Changed timestamps to time_t instead of unsigneddavid@statichacks.org, Nov 6, 2008
  3. 2/4 Changed timestamps to time_t in header filesdavid@statichacks.org, Nov 6, 2008
  4. 3/4 Changed timestamps to time_t instead of unsigned long for approxidate()david@statichacks.org, Nov 6, 2008
  5. 4/4 Changed timestamps to time_tdavid@statichacks.org, Nov 6, 2008
  6. Linus TorvaldsNov 6, 2008
  7. David BrysonNov 6, 2008
  8. Linus TorvaldsNov 6, 2008
  9. Daniel StenbergNov 6, 2008

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.