| 197 | } |
| 198 | |
| 199 | void encode_timestamp(IUtil* u, const tm* from, const unsigned fractions, FbTimestamp* to) |
| 200 | { |
| 201 | tm times = *from; |
| 202 | |
| 203 | // decode firebird timestamp format |
| 204 | times.tm_year += 1900; |
| 205 | times.tm_mon++; |
| 206 | |
| 207 | to->date.encode(u, times.tm_year, times.tm_mon, times.tm_mday); |
| 208 | to->time.encode(u, times.tm_hour, times.tm_min, times.tm_sec, fractions); |
| 209 | } |
| 210 | } // anonymous namespace |
| 211 | |
| 212 | /*** |
no test coverage detected