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

[PATCH 1/3] date: Expose the time_to_tm function

From
Ramkumar Ramachandra <artagnon@gmail.com>
Date
Jan 15, 2011, 06:51 UTC
Message-ID
<1295074272-19559-2-git-send-email-artagnon@gmail.com>
In-Reply-To
<1295074272-19559-1-git-send-email-artagnon@gmail.com>
Signed-off-by: Ramkumar Ramachandra <artagnon@gmail.com>
---
 cache.h |    1 +
 date.c  |    2 +-
 2 files changed, 2 insertions(+), 1 deletions(-)
diff --git a/cache.h b/cache.h
index d83d68c..95fea31 100644
--- a/cache.h
+++ b/cache.h
@@ -816,6 +816,7 @@ enum date_mode {
 	DATE_RAW
 };
 
+struct tm *time_to_tm(unsigned long time, int tz);
 const char *show_date(unsigned long time, int timezone, enum date_mode mode);
 const char *show_date_relative(unsigned long time, int tz,
 			       const struct timeval *now,
diff --git a/date.c b/date.c
index 00f9eb5..e601a50 100644
--- a/date.c
+++ b/date.c
@@ -54,7 +54,7 @@ static time_t gm_time_t(unsigned long time, int tz)
  * thing, which means that tz -0100 is passed in as the integer -100,
  * even though it means "sixty minutes off"
  */
-static struct tm *time_to_tm(unsigned long time, int tz)
+struct tm *time_to_tm(unsigned long time, int tz)
 {
 	time_t t = gm_time_t(time, tz);
 	return gmtime(&t);
-- 
1.7.4.rc1.7.g2cf08.dirty
Previous: Ramkumar RamachandraNext: Ramkumar Ramachandra
Message 2 of 8 in “Towards a Git-to-SVN bridge”
  1. 0/3 Towards a Git-to-SVN bridgeRamkumar Ramachandra, Jan 15, 2011
  2. 1/3 date: Expose the time_to_tm functionRamkumar Ramachandra, Jan 15, 2011
  3. 2/3 vcs-svn: Start working on the dumpfile producerRamkumar Ramachandra, Jan 15, 2011
  4. Peter BaumannJan 15, 2011
  5. Ramkumar RamachandraJan 15, 2011
  6. 3/3 Build an svn-fi target in contrib/svn-feRamkumar Ramachandra, Jan 15, 2011
  7. Jonathan NiederJan 15, 2011
  8. Ramkumar RamachandraJan 15, 2011

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.