~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to drizzled/temporal.cc

  • Committer: Andrew Hutchings
  • Date: 2011-03-10 15:44:28 UTC
  • mto: (2228.1.6 build)
  • mto: This revision was merged to the branch mainline in revision 2230.
  • Revision ID: andrew@linuxjedi.co.uk-20110310154428-xpogr8i39bcxqr2z
Fix TIME type comparators

Show diffs side-by-side

added added

removed removed

Lines of Context:
1130
1130
// We fill the structure based on just int
1131
1131
void Time::to_uint64_t(uint64_t &to) const
1132
1132
{
1133
 
  to= _hours * 24
1134
 
     + _minutes * 60
 
1133
  to= (_hours * 60 * 60)
 
1134
     + (_minutes * 60)
1135
1135
     + _seconds;
1136
1136
}
1137
1137