diff options
Diffstat (limited to 'src')
| -rw-r--r-- | src/editfns.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/editfns.c b/src/editfns.c index 88a20cb7d81..783b2558972 100644 --- a/src/editfns.c +++ b/src/editfns.c | |||
| @@ -760,7 +760,9 @@ If you them to stand for years above 1900, you must do that yourself.") | |||
| 760 | 760 | ||
| 761 | fullyear = XINT (year); | 761 | fullyear = XINT (year); |
| 762 | 762 | ||
| 763 | /* Adjust incoming datespec to epoch = March 1, year 0. */ | 763 | /* Adjust incoming datespec to epoch = March 1, year 0. |
| 764 | The "date" March 1, year 0, is an abstraction used purely for its | ||
| 765 | computational convenience; year 0 never existed. */ | ||
| 764 | mon = XINT (month) - 1 + 10; | 766 | mon = XINT (month) - 1 + 10; |
| 765 | fullyear += mon/12 - 1; | 767 | fullyear += mon/12 - 1; |
| 766 | mon %= 12; | 768 | mon %= 12; |