1089
1089
void Date::to_decimal(my_decimal *to) const
1091
1091
int64_t date_portion= (((_years * 100L) + _months) * 100L) + _days;
1092
(void) int2my_decimal(E_DEC_FATAL_ERROR, date_portion, false, to);
1092
(void) int2_class_decimal(E_DEC_FATAL_ERROR, date_portion, false, to);
1095
1095
void DateTime::to_decimal(my_decimal *to) const
1097
1097
int64_t date_portion= (((_years * 100L) + _months) * 100L) + _days;
1098
1098
int64_t time_portion= (((((date_portion * 100L) + _hours) * 100L) + _minutes) * 100L) + _seconds;
1099
(void) int2my_decimal(E_DEC_FATAL_ERROR, time_portion, false, to);
1099
(void) int2_class_decimal(E_DEC_FATAL_ERROR, time_portion, false, to);
1102
1102
to->buf[(to->intg-1) / 9 + 1]= _useconds * 1000;