~stewart/drizzle/docs-improvements-1

« back to all changes in this revision

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

merged with up to date trunk

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
/* -*- mode: c++; c-basic-offset: 2; indent-tabs-mode: nil; -*-
2
2
 *  vim:expandtab:shiftwidth=2:tabstop=2:smarttab:
3
3
 *
4
 
 *  Copyright (C) 2008 Sun Microsystems
 
4
 *  Copyright (C) 2008 Sun Microsystems, Inc.
5
5
 *
6
6
 *  This program is free software; you can redistribute it and/or modify
7
7
 *  it under the terms of the GNU General Public License as published by
27
27
{
28
28
 
29
29
/**
30
 
    Converts current time in time_t to DRIZZLE_TIME represenatation for local
 
30
    Converts current time in time_t to type::Time represenatation for local
31
31
    time zone. Defines time zone (local) used for whole SYSDATE function.
32
32
*/
33
 
void Item_func_sysdate_local::store_now_in_TIME(DRIZZLE_TIME *now_time)
 
33
void Item_func_sysdate_local::store_now_in_TIME(type::Time *now_time)
34
34
{
35
35
  Session *session= current_session;
36
36
  session->variables.time_zone->gmt_sec_to_TIME(now_time, time(NULL));
70
70
}
71
71
 
72
72
 
73
 
bool Item_func_sysdate_local::get_date(DRIZZLE_TIME *res,
 
73
bool Item_func_sysdate_local::get_date(type::Time *res,
74
74
                                       uint32_t )
75
75
{
76
76
  store_now_in_TIME(&ltime);