diff options
author | unknown <ram@gw.mysql.r18.ru> | 2004-05-20 14:21:30 +0500 |
---|---|---|
committer | unknown <ram@gw.mysql.r18.ru> | 2004-05-20 14:21:30 +0500 |
commit | 001d4cf9d4d4aa5e99141cfc29b7aed866898caa (patch) | |
tree | 1be2acb38b7641d5628a118b7e1f352af28cd1ac /sql/time.cc | |
parent | 4471aadb7cc34dedbd29f15c372e72f5c468f5b6 (diff) | |
download | mariadb-git-001d4cf9d4d4aa5e99141cfc29b7aed866898caa.tar.gz |
A comment for str_to_datetime().
Diffstat (limited to 'sql/time.cc')
-rw-r--r-- | sql/time.cc | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/sql/time.cc b/sql/time.cc index a5e081dfb30..db05d606292 100644 --- a/sql/time.cc +++ b/sql/time.cc @@ -663,6 +663,20 @@ time_t str_to_timestamp(const char *str,uint length) } +/* + Convert a string to datetime. + + SYNOPSIS + str_to_datetime() + str String to parse (see str_to_TIME() synopsis) + length Length of str + fuzzy_date Flags (see str_to_TIME() synopsis) + + RETURN + -1 if error + datetime value otherwise +*/ + longlong str_to_datetime(const char *str,uint length, uint fuzzy_date) { TIME l_time; |