~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to drizzled/tztime.h

  • Committer: Monty Taylor
  • Date: 2008-07-31 18:25:59 UTC
  • mto: (202.3.5 gettextize)
  • mto: This revision was merged to the branch mainline in revision 243.
  • Revision ID: monty@inaugust.com-20080731182559-txjt9f3dfhusxfp8
Renamed MYSQL_TIME to DRIZZLE_TIME.

Show diffs side-by-side

added added

removed removed

Lines of Context:
20
20
 
21
21
/**
22
22
  This class represents abstract time zone and provides 
23
 
  basic interface for MYSQL_TIME <-> my_time_t conversion.
 
23
  basic interface for DRIZZLE_TIME <-> my_time_t conversion.
24
24
  Actual time zones which are specified by DB, or via offset 
25
25
  or use system functions are its descendants.
26
26
*/
29
29
public:
30
30
  Time_zone() {}                              /* Remove gcc warning */
31
31
  /**
32
 
    Converts local time in broken down MYSQL_TIME representation to 
 
32
    Converts local time in broken down DRIZZLE_TIME representation to 
33
33
    my_time_t (UTC seconds since Epoch) represenation.
34
34
    Returns 0 in case of error. Sets in_dst_time_gap to true if date provided
35
35
    falls into spring time-gap (or lefts it untouched otherwise).
36
36
  */
37
 
  virtual my_time_t TIME_to_gmt_sec(const MYSQL_TIME *t, 
 
37
  virtual my_time_t TIME_to_gmt_sec(const DRIZZLE_TIME *t, 
38
38
                                    bool *in_dst_time_gap) const = 0;
39
39
  /**
40
40
    Converts time in my_time_t representation to local time in
41
 
    broken down MYSQL_TIME representation.
 
41
    broken down DRIZZLE_TIME representation.
42
42
  */
43
 
  virtual void   gmt_sec_to_TIME(MYSQL_TIME *tmp, my_time_t t) const = 0;
 
43
  virtual void   gmt_sec_to_TIME(DRIZZLE_TIME *tmp, my_time_t t) const = 0;
44
44
  /**
45
45
    Because of constness of String returned by get_name() time zone name 
46
46
    have to be already zeroended to be able to use String::ptr() instead
61
61
extern Time_zone * my_tz_find(THD *thd, const String *name);
62
62
extern bool     my_tz_init(THD *org_thd, const char *default_tzname, bool bootstrap);
63
63
extern void        my_tz_free();
64
 
extern my_time_t   sec_since_epoch_TIME(MYSQL_TIME *t);
 
64
extern my_time_t   sec_since_epoch_TIME(DRIZZLE_TIME *t);