8
0
mirror of https://github.com/FirebirdSQL/firebird.git synced 2025-01-23 22:03:03 +01:00

Replace legacy isc_(encode/decode)_date by isc_(encode/decode)_timestamp.

This commit is contained in:
robocop 2005-05-03 04:11:57 +00:00
parent 305ead4714
commit 3c4e69f196
2 changed files with 3 additions and 3 deletions

View File

@ -132,7 +132,7 @@ void PPG_print_header(const header_page* header, SLONG page, bool nocreation,
FPRINTF(outfile, "\tDatabase dialect\t1\n");
if (!nocreation) {
isc_decode_date(reinterpret_cast<const ISC_QUAD*>(header->hdr_creation_date),
isc_decode_timestamp(reinterpret_cast<const ISC_TIMESTAMP*>(header->hdr_creation_date),
&time);
FPRINTF(outfile, "\tCreation date\t\t%s %d, %d %d:%02d:%02d\n",
FB_SHORT_MONTHS[time.tm_mon], time.tm_mday, time.tm_year + 1900,
@ -322,7 +322,7 @@ void PPG_print_log(const log_info_page* logp, SLONG page, bool nocreation,
else
{
struct tm time;
isc_decode_date(reinterpret_cast<const ISC_QUAD*>(logp->log_creation_date),
isc_decode_timestamp(reinterpret_cast<const ISC_TIMESTAMP*>(logp->log_creation_date),
&time);
FPRINTF(outfile,
"\tCreation date\t%s %d, %d %d:%02d:%02d\n",

View File

@ -995,7 +995,7 @@ fprintf (" Creation date \n", header->hdr_creation_date);
fprintf(file, " Shadow count\t\t%ld\n", header->hdr_shadow_count);
tm time;
isc_decode_date(header->hdr_creation_date, &time);
isc_decode_timestamp(header->hdr_creation_date, &time);
fprintf(file, " Creation date:\t\t%s %d, %d %d:%02d:%02d\n",
FB_SHORT_MONTHS[time.tm_mon], time.tm_mday, time.tm_year + 1900,