summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorunknown <konstantin@mysql.com>2004-10-20 16:45:09 +0400
committerunknown <konstantin@mysql.com>2004-10-20 16:45:09 +0400
commit7c20b1328866061273617ec7e8ae7b4e00c8674c (patch)
treeb63f30c547d9c739a72eccdd5b8817f371e31a6d /include
parent6875cf36d1625449f539c9eaefb8171158231ee2 (diff)
parent8fe8912f4c1d01b9bb8c5c1aefe4ac6405a87976 (diff)
downloadmariadb-git-7c20b1328866061273617ec7e8ae7b4e00c8674c.tar.gz
Merge bk-internal.mysql.com:/home/bk/mysql-4.1
into mysql.com:/home/kostja/work/mysql-4.1-6049 libmysql/libmysql.c: Auto merged sql/field.cc: Auto merged sql/item.cc: Auto merged sql/mysql_priv.h: Auto merged tests/client_test.c: Auto merged
Diffstat (limited to 'include')
-rw-r--r--include/my_time.h14
1 files changed, 14 insertions, 0 deletions
diff --git a/include/my_time.h b/include/my_time.h
index d4dbe459c3b..dab17904b2d 100644
--- a/include/my_time.h
+++ b/include/my_time.h
@@ -60,6 +60,20 @@ my_system_gmt_sec(const MYSQL_TIME *t, long *my_timezone, bool *in_dst_time_gap)
void set_zero_time(MYSQL_TIME *tm);
+/*
+ Required buffer length for my_time_to_str, my_date_to_str,
+ my_datetime_to_str and TIME_to_string functions. Note, that the
+ caller is still responsible to check that given TIME structure
+ has values in valid ranges, otherwise size of the buffer could
+ be not enough.
+*/
+#define MAX_DATE_STRING_REP_LENGTH 30
+
+int my_time_to_str(const MYSQL_TIME *l_time, char *to);
+int my_date_to_str(const MYSQL_TIME *l_time, char *to);
+int my_datetime_to_str(const MYSQL_TIME *l_time, char *to);
+int my_TIME_to_str(const MYSQL_TIME *l_time, char *to);
+
C_MODE_END
#endif /* _my_time_h_ */