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

Commita07628b

Browse files
committed
More minor spacing improvements.
1 parentd5f1e08 commita07628b

File tree

1 file changed

+6
-11
lines changed

1 file changed

+6
-11
lines changed

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

Lines changed: 6 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
*
99
*
1010
* IDENTIFICATION
11-
* $PostgreSQL: pgsql/src/backend/utils/adt/date.c,v 1.117 2005/07/22 03:46:33 momjian Exp $
11+
* $PostgreSQL: pgsql/src/backend/utils/adt/date.c,v 1.118 2005/07/2205:03:09 momjian Exp $
1212
*
1313
*-------------------------------------------------------------------------
1414
*/
@@ -1093,18 +1093,13 @@ AdjustTimeForTypmod(TimeADT *time, int32 typmod)
10931093
*/
10941094
#ifdefHAVE_INT64_TIMESTAMP
10951095
if (*time >=INT64CONST(0))
1096-
{
10971096
*time= ((*time+TimeOffsets[typmod]) /TimeScales[typmod])*
10981097
TimeScales[typmod];
1099-
}
11001098
else
1101-
{
11021099
*time=-((((-*time)+TimeOffsets[typmod]) /TimeScales[typmod])*
11031100
TimeScales[typmod]);
1104-
}
11051101
#else
1106-
*time=rint((double)*time*TimeScales[typmod])
1107-
/TimeScales[typmod];
1102+
*time=rint((double)*time*TimeScales[typmod]) /TimeScales[typmod];
11081103
#endif
11091104
}
11101105
}
@@ -2496,9 +2491,9 @@ timetz_zone(PG_FUNCTION_ARGS)
24962491
pg_time_tnow;
24972492

24982493
/* Find the specified timezone */
2499-
len= (VARSIZE(zone)-VARHDRSZ>TZ_STRLEN_MAX) ?
2494+
len= (VARSIZE(zone)-VARHDRSZ>TZ_STRLEN_MAX) ?
25002495
TZ_STRLEN_MAX :VARSIZE(zone)-VARHDRSZ;
2501-
memcpy(tzname,VARDATA(zone),len);
2496+
memcpy(tzname,VARDATA(zone),len);
25022497
tzname[len]=0;
25032498
tzp=pg_tzset(tzname);
25042499
if (!tzp) {
@@ -2537,7 +2532,7 @@ timetz_zone(PG_FUNCTION_ARGS)
25372532
result->zone=tz;
25382533

25392534
PG_RETURN_TIMETZADT_P(result);
2540-
}/* timetz_zone() */
2535+
}
25412536

25422537
/* timetz_izone()
25432538
* Encode time with time zone type with specified time interval as time zone.
@@ -2582,4 +2577,4 @@ timetz_izone(PG_FUNCTION_ARGS)
25822577
result->zone=tz;
25832578

25842579
PG_RETURN_TIMETZADT_P(result);
2585-
}/* timetz_izone() */
2580+
}

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp