Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit93ac35f

Browse files
author
Thomas G. Lockhart
committed
Fix a few DATEDEBUG print statements.
1 parentfa940fd commit93ac35f

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

‎src/backend/utils/adt/datetime.c

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
*
88
*
99
* IDENTIFICATION
10-
* $Header: /cvsroot/pgsql/src/backend/utils/adt/datetime.c,v 1.7 1997/05/30 15:02:48 thomas Exp $
10+
* $Header: /cvsroot/pgsql/src/backend/utils/adt/datetime.c,v 1.8 1997/06/03 13:56:32 thomas Exp $
1111
*
1212
*-------------------------------------------------------------------------
1313
*/
@@ -282,7 +282,7 @@ date_datetime(DateADT dateVal)
282282

283283
#ifdefDATEDEBUG
284284
printf("date_datetime- date is %d.%02d.%02d\n",tm->tm_year,tm->tm_mon,tm->tm_mday);
285-
printf("date_datetime- time is %02d:%02d:%02d %.7f\n",tm->tm_hour,tm->tm_min,tm->tm_sec,*fsec);
285+
printf("date_datetime- time is %02d:%02d:%02d %.7f\n",tm->tm_hour,tm->tm_min,tm->tm_sec,fsec);
286286
#endif
287287

288288
if (tm2datetime(tm,fsec,&tz,result)!=0)
@@ -394,7 +394,7 @@ date2tm(DateADT dateVal, int *tzp, struct tm *tm, double *fsec, char **tzn)
394394
#ifdefDATEDEBUG
395395
#ifdefHAVE_INT_TIMEZONE
396396
printf("date2tm- (localtime) %d.%02d.%02d %02d:%02d:%02.0f %s %s dst=%d\n",
397-
tx->tm_year,tx->tm_mon,tx->tm_mday,tx->tm_hour,tx->tm_min,sec,
397+
tx->tm_year,tx->tm_mon,tx->tm_mday,tx->tm_hour,tx->tm_min,(double)tm->tm_sec,
398398
tzname[0],tzname[1],tx->tm_isdst);
399399
#endif
400400
#endif

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp