summaryrefslogtreecommitdiff
path: root/sql/tztime.cc
diff options
context:
space:
mode:
authorunknown <andrey@lmy004.>2005-12-02 13:07:02 +0100
committerunknown <andrey@lmy004.>2005-12-02 13:07:02 +0100
commit4d891eb91cd0556e05a2022c4120d776ca772f69 (patch)
tree7152e34323e50a0845f559f1477316b2b57c7737 /sql/tztime.cc
parentdad8c66501f097491690ee3098594c1a0844b3f4 (diff)
downloadmariadb-git-4d891eb91cd0556e05a2022c4120d776ca772f69.tar.gz
WL1034 update for latest 5.1 sources
BUILD/SETUP.sh: for now no optimizations in debug build - get rid of "value optimized out"
Diffstat (limited to 'sql/tztime.cc')
-rw-r--r--sql/tztime.cc12
1 files changed, 12 insertions, 0 deletions
diff --git a/sql/tztime.cc b/sql/tztime.cc
index eba2f8f4a7b..50c3cf1fe4f 100644
--- a/sql/tztime.cc
+++ b/sql/tztime.cc
@@ -807,6 +807,18 @@ sec_since_epoch(int year, int mon, int mday, int hour, int min ,int sec)
}
+ /*
+ Works like sec_since_epoch but expects TIME structure as parameter.
+*/
+
+my_time_t
+sec_since_epoch_TIME(TIME *t)
+{
+ return sec_since_epoch(t->year, t->month, t->day,
+ t->hour, t->minute, t->second);
+}
+
+
/*
Converts local time in broken down TIME representation to my_time_t
representation.