| 640 | |
| 641 | |
| 642 | void API_ROUTINE isc_encode_timestamp(const void* times_arg, GDS_TIMESTAMP* date) |
| 643 | { |
| 644 | /************************************** |
| 645 | * |
| 646 | * i s c _ e n c o d e _ t i m e s t a m p |
| 647 | * |
| 648 | ************************************** |
| 649 | * |
| 650 | * Functional description |
| 651 | * Convert from UNIX time structure to internal timestamp format. |
| 652 | * |
| 653 | * Note: This routine is intended only for public API use. Engine itself and |
| 654 | * utilities should be using TimeStamp class directly in type-safe manner. |
| 655 | * |
| 656 | **************************************/ |
| 657 | const tm* const times = static_cast<const struct tm*>(times_arg); |
| 658 | *date = Firebird::TimeStamp::encode_timestamp(times); |
| 659 | } |
| 660 | |
| 661 | |
| 662 | #ifdef DEV_BUILD |
nothing calls this directly
no test coverage detected