~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to drizzled/function/time/now.cc

Merged from Toru - removal of my_time_t.

Show diffs side-by-side

added added

removed removed

Lines of Context:
44
44
}
45
45
 
46
46
/**
47
 
    Converts current time in my_time_t to DRIZZLE_TIME represenatation for local
 
47
    Converts current time in time_t to DRIZZLE_TIME represenatation for local
48
48
    time zone. Defines time zone (local) used for whole NOW function.
49
49
*/
50
50
void Item_func_now_local::store_now_in_TIME(DRIZZLE_TIME *now_time)
56
56
 
57
57
 
58
58
/**
59
 
    Converts current time in my_time_t to DRIZZLE_TIME represenatation for UTC
 
59
    Converts current time in time_t to DRIZZLE_TIME represenatation for UTC
60
60
    time zone. Defines time zone (UTC) used for whole UTC_TIMESTAMP function.
61
61
*/
62
62
void Item_func_now_utc::store_now_in_TIME(DRIZZLE_TIME *now_time)
63
63
{
64
64
  my_tz_UTC->gmt_sec_to_TIME(now_time,
65
 
                             (my_time_t)(current_session->query_start()));
 
65
                             (time_t)(current_session->query_start()));
66
66
  /*
67
67
    We are not flagging this query as using time zone, since it uses fixed
68
68
    UTC-SYSTEM time-zone.