~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to mysys/my_time.cc

Merged from Toru - removal of my_time_t.

Show diffs side-by-side

added added

removed removed

Lines of Context:
775
775
 
776
776
/*
777
777
  Convert time in DRIZZLE_TIME representation in system time zone to its
778
 
  my_time_t form (number of seconds in UTC since begginning of Unix Epoch).
 
778
  time_t form (number of seconds in UTC since begginning of Unix Epoch).
779
779
 
780
780
  SYNOPSIS
781
781
    my_system_gmt_sec()
795
795
  RETURN VALUE
796
796
    Time in UTC seconds since Unix Epoch representation.
797
797
*/
798
 
my_time_t
 
798
time_t
799
799
my_system_gmt_sec(const DRIZZLE_TIME *t_src, long *my_timezone,
800
800
                  bool *in_dst_time_gap)
801
801
{
981
981
  if ((tmp < TIMESTAMP_MIN_VALUE) || (tmp > TIMESTAMP_MAX_VALUE))
982
982
    tmp= 0;
983
983
 
984
 
  return (my_time_t) tmp;
 
984
  return (time_t) tmp;
985
985
} /* my_system_gmt_sec */
986
986
 
987
987