MCPcopy Create free account
hub / github.com/FirebirdSQL/firebird / API_ROUTINE isc_encode_timestamp

Function API_ROUTINE isc_encode_timestamp

src/yvalve/gds.cpp:642–659  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

640
641
642void 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

Callers

nothing calls this directly

Calls 1

encode_timestampFunction · 0.85

Tested by

no test coverage detected