~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to drizzled/temporal.cc

  • Committer: Brian Aker
  • Date: 2010-12-18 02:08:04 UTC
  • mto: (2015.1.1 clean)
  • mto: This revision was merged to the branch mainline in revision 2018.
  • Revision ID: brian@tangent.org-20101218020804-mh3lga9uv7jlajwy
Merge in first pass of TIME type (closer to EPOCH time).

Show diffs side-by-side

added added

removed removed

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