home *** CD-ROM | disk | FTP | other *** search
/ PC Professionell 2004 December / PCpro_2004_12.ISO / files / webserver / mySQL / mysql-5.0.1-alpha-snapshot-win / data1.cab / Development / include / mysql_time.h < prev    next >
Encoding:
C/C++ Source or Header  |  2004-07-28  |  1.2 KB  |  38 lines

  1. /* Copyright (C) 2004 MySQL AB & MySQL Finland AB & TCX DataKonsult AB
  2.  
  3.  This program is free software; you can redistribute it and/or modify
  4.  it under the terms of the GNU General Public License as published by
  5.  the Free Software Foundation; either version 2 of the License, or
  6.  (at your option) any later version.
  7.  
  8.  This program is distributed in the hope that it will be useful,
  9.  but WITHOUT ANY WARRANTY; without even the implied warranty of
  10.  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
  11.  GNU General Public License for more details.
  12.  
  13.  You should have received a copy of the GNU General Public License
  14.  along with this program; if not, write to the Free Software
  15.  Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA */
  16.  
  17. #ifndef _mysql_time_h_
  18. #define _mysql_time_h_
  19.  
  20. /* Time declarations shared between server and client library */
  21.  
  22. enum enum_mysql_timestamp_type
  23. {
  24.   MYSQL_TIMESTAMP_NONE= -2, MYSQL_TIMESTAMP_ERROR= -1,
  25.   MYSQL_TIMESTAMP_DATE= 0, MYSQL_TIMESTAMP_DATETIME= 1, MYSQL_TIMESTAMP_TIME= 2
  26. };
  27.  
  28.  
  29. typedef struct st_mysql_time
  30. {
  31.   unsigned int  year, month, day, hour, minute, second;
  32.   unsigned long second_part;
  33.   my_bool       neg;
  34.   enum enum_mysql_timestamp_type time_type;
  35. } MYSQL_TIME;
  36.  
  37. #endif /* _mysql_time_h_ */
  38.