summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/core/wee-version.c13
-rw-r--r--src/core/wee-version.h1
-rw-r--r--src/plugins/plugin-api.c4
3 files changed, 16 insertions, 2 deletions
diff --git a/src/core/wee-version.c b/src/core/wee-version.c
index bf6a3303e..806296b46 100644
--- a/src/core/wee-version.c
+++ b/src/core/wee-version.c
@@ -134,3 +134,16 @@ version_get_compilation_time ()
{
return __TIME__;
}
+
+/*
+ * Returns date/time of WeeChat compilation.
+ *
+ * Example:
+ * Dec 16 2012 18:10:22
+ */
+
+const char *
+version_get_compilation_date_time ()
+{
+ return __DATE__ " " __TIME__;
+}
diff --git a/src/core/wee-version.h b/src/core/wee-version.h
index 4d22d265c..d7d32d52a 100644
--- a/src/core/wee-version.h
+++ b/src/core/wee-version.h
@@ -27,5 +27,6 @@ extern const char *version_get_git ();
extern const char *version_get_version_with_git ();
extern const char *version_get_compilation_date ();
extern const char *version_get_compilation_time ();
+extern const char *version_get_compilation_date_time ();
#endif /* WEECHAT_VERSION_H */
diff --git a/src/plugins/plugin-api.c b/src/plugins/plugin-api.c
index 1888c732d..e2702eeef 100644
--- a/src/plugins/plugin-api.c
+++ b/src/plugins/plugin-api.c
@@ -388,7 +388,7 @@ plugin_api_info_date_cb (const void *pointer, void *data,
(void) info_name;
(void) arguments;
- return version_get_compilation_date ();
+ return version_get_compilation_date_time ();
}
/*
@@ -1905,7 +1905,7 @@ plugin_api_init ()
"release)"),
NULL, &plugin_api_info_version_git_cb, NULL, NULL);
hook_info (NULL, "date",
- N_("WeeChat compilation date"),
+ N_("WeeChat compilation date/time"),
NULL, &plugin_api_info_date_cb, NULL, NULL);
hook_info (NULL, "pid",
N_("WeeChat PID (process ID)"),