summaryrefslogtreecommitdiffstats
path: root/gettext-tools/src/po-time.c
diff options
context:
space:
mode:
Diffstat (limited to 'gettext-tools/src/po-time.c')
-rw-r--r--gettext-tools/src/po-time.c22
1 files changed, 11 insertions, 11 deletions
diff --git a/gettext-tools/src/po-time.c b/gettext-tools/src/po-time.c
index 6583395..8973fe3 100644
--- a/gettext-tools/src/po-time.c
+++ b/gettext-tools/src/po-time.c
@@ -1,5 +1,5 @@
/* PO/POT file timestamps.
- Copyright (C) 1995-1998, 2000-2002 Free Software Foundation, Inc.
+ Copyright (C) 1995-1998, 2000-2003 Free Software Foundation, Inc.
Written by Ulrich Drepper <drepper@gnu.ai.mit.edu>, April 1995.
This program is free software; you can redistribute it and/or modify
@@ -36,18 +36,18 @@ difftm (const struct tm *a, const struct tm *b)
int by = b->tm_year + TM_YEAR_ORIGIN - 1;
/* Some compilers cannot handle this as a single return statement. */
long days = (
- /* difference in day of year */
- a->tm_yday - b->tm_yday
- /* + intervening leap days */
- + ((ay >> 2) - (by >> 2))
- - (ay / 100 - by / 100)
- + ((ay / 100 >> 2) - (by / 100 >> 2))
- /* + difference in years * 365 */
- + (long) (ay - by) * 365l);
+ /* difference in day of year */
+ a->tm_yday - b->tm_yday
+ /* + intervening leap days */
+ + ((ay >> 2) - (by >> 2))
+ - (ay / 100 - by / 100)
+ + ((ay / 100 >> 2) - (by / 100 >> 2))
+ /* + difference in years * 365 */
+ + (long) (ay - by) * 365l);
return 60l * (60l * (24l * days + (a->tm_hour - b->tm_hour))
- + (a->tm_min - b->tm_min))
- + (a->tm_sec - b->tm_sec);
+ + (a->tm_min - b->tm_min))
+ + (a->tm_sec - b->tm_sec);
}