Skip to content

Commit a34079a

Browse files
gesslerpdvstinner
andauthored
Apply suggestions from code review
Co-authored-by: Victor Stinner <vstinner@python.org>
1 parent d711f28 commit a34079a

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

Python/pytime.c

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -274,8 +274,9 @@ _PyTime_AsCLong(PyTime_t t, long *t2)
274274
return 0;
275275
}
276276

277-
// 369 years + 89 leap days
278-
#define SECS_BETWEEN_EPOCHS 11644473600LL /* Seconds between 1601-01-01 and 1970-01-01 */
277+
// Seconds between 1601-01-01 and 1970-01-01:
278+
// 369 years + 89 leap days.
279+
#define SECS_BETWEEN_EPOCHS 11644473600LL
279280
#define HUNDRED_NS_PER_SEC 10000000LL
280281

281282
// Calculate day of year (0-365) from SYSTEMTIME
@@ -301,7 +302,7 @@ _PyTime_calc_yday(const SYSTEMTIME *st)
301302
}
302303

303304
// Convert time_t to struct tm using Windows FILETIME API.
304-
// If is_local is true, convert to local time. */
305+
// If is_local is true, convert to local time.
305306
// Fallback for negative timestamps that localtime_s/gmtime_s cannot handle.
306307
// Return 0 on success. Return -1 on error.
307308
static int

0 commit comments

Comments
 (0)