~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to drizzled/tztime.h

  • Committer: Joe Daly
  • Date: 2010-01-06 02:20:42 UTC
  • mto: This revision was merged to the branch mainline in revision 1267.
  • Revision ID: skinny.moey@gmail.com-20100106022042-8ov23wc4aq8f9k7d
rename hash_algorithm to algorithm

Show diffs side-by-side

added added

removed removed

Lines of Context:
34
34
 
35
35
#include "drizzled/memory/sql_alloc.h"
36
36
 
37
 
namespace drizzled
38
 
{
39
 
 
40
37
class String;
41
38
typedef struct st_drizzle_time DRIZZLE_TIME;
42
39
 
46
43
  Actual time zones which are specified by DB, or via offset
47
44
  or use system functions are its descendants.
48
45
*/
49
 
class Time_zone: public memory::SqlAlloc
 
46
class Time_zone: public drizzled::memory::SqlAlloc
50
47
{
51
48
public:
52
49
  Time_zone() {}                              /* Remove gcc warning */
72
69
 
73
70
  /**
74
71
    We need this only for surpressing warnings, objects of this type are
75
 
    allocated on memory::Root and should not require destruction.
 
72
    allocated on drizzled::memory::Root and should not require destruction.
76
73
  */
77
74
  virtual ~Time_zone() {};
78
75
};
80
77
extern Time_zone * my_tz_SYSTEM;
81
78
extern Time_zone * my_tz_find(Session *session, const String *name);
82
79
extern bool     my_tz_init(Session *org_session, const char *default_tzname);
83
 
 
84
 
} /* namespace drizzled */
 
80
extern time_t   sec_since_epoch_TIME(DRIZZLE_TIME *t);
85
81
 
86
82
#endif /* DRIZZLED_TZTIME_H */