SUSE Linux Leap Year Testing Results
This document (3663614) is provided subject to the disclaimer at the end of this document.
Environment
- SLES 10 SP1 (i386, x86_64, ppc, ia64, s390x)
- SLES 10 SP2 (i386, x86_64, ppc, ia64, s390x)
- SLES 10 SP3 (i386, x86_64, ppc, ia64, s390x)
- SLES 10 SP4 (i386, x86_64, ppc, ia64, s390x)
- SLES 11 (i386, x86_64, ppc, ia64, s390x)
- SLES 11 SP1 (i386, x86_64, ppc, ia64, s390x)
Situation
Testing Methodology:
For each YEAR in the range from 1970 to 2038:
1- Script created that creates the date "02/28/YEAR 23:59"
2- Add 120 seconds to this date (using the "date" command)
3- Check that the result is 02/29/YEAR (for leap year) or 03/01/YEAR (for non-leap year)
4- In the case that the YEAR is a leap year, add 1 day + 120 seconds to the original date (using the "date" command)
5- Check that the result is 03/01/YEAR
Since the "date" command is internally using gettimeofday/ctime functions from glibc, the functionality of these functions are stressed (with regard to leap years).
Resolution
- SLES9 SP4 (i386, x86_64, ppc, ia64, s390, s390x): PASSED
- SLES 10 SP1 (i386, x86_64, ppc, ia64, s390x): PASSED
- SLES 10 SP2 (i386, x86_64, ppc, ia64, s390x): PASSED
- SLES 10 SP3 (i386, x86_64, ppc, ia64, s390x): PASSED
- SLES 10 SP4 (i386, x86_64, ppc, ia64, s390x): PASSED
- SLES 11 (i386, x86_64, ppc, ia64, s390x): PASSED
- SLES 11 SP1 (i386, x86_64, ppc, ia64, s390x): PASSED
- SLES 11 SP2 (i386, x86_64, ppc, ia64, s390x): PASSED
Additional Information
Disclaimer
This Support Knowledgebase provides a valuable tool for SUSE customers and parties interested in our products and solutions to acquire information, ideas and learn from one another. Materials are provided for informational, personal or non-commercial use within your organization and are presented "AS IS" WITHOUT WARRANTY OF ANY KIND.
- Document ID:3663614
- Creation Date: 01-Feb-2008
- Modified Date:03-Mar-2020
-
- SUSE Linux Enterprise Server
For questions or concerns with the SUSE Knowledgebase please contact: tidfeedback[at]suse.com