Commit 9e4d421e by Etienne Samson

doc: clarify that git_time_t is seconds from the epoch

parent e9a34864
...@@ -30,8 +30,8 @@ GIT_BEGIN_DECL ...@@ -30,8 +30,8 @@ GIT_BEGIN_DECL
* @param out new signature, in case of error NULL * @param out new signature, in case of error NULL
* @param name name of the person * @param name name of the person
* @param email email of the person * @param email email of the person
* @param time time when the action happened * @param time time (in seconds from epoch) when the action happened
* @param offset timezone offset in minutes for the time * @param offset timezone offset (in minutes) for the time
* @return 0 or an error code * @return 0 or an error code
*/ */
GIT_EXTERN(int) git_signature_new(git_signature **out, const char *name, const char *email, git_time_t time, int offset); GIT_EXTERN(int) git_signature_new(git_signature **out, const char *name, const char *email, git_time_t time, int offset);
......
...@@ -59,7 +59,7 @@ typedef __haiku_std_int64 git_time_t; ...@@ -59,7 +59,7 @@ typedef __haiku_std_int64 git_time_t;
* app, even though /we/ define _FILE_OFFSET_BITS=64. * app, even though /we/ define _FILE_OFFSET_BITS=64.
*/ */
typedef int64_t git_off_t; typedef int64_t git_off_t;
typedef int64_t git_time_t; typedef int64_t git_time_t; /**< time in seconds from epoch */
#endif #endif
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment