note description: "Facility routines to check the validity of DATEs" legal: "See notice at end of class." status: "See notice at end of class." date: "$Date: 2009-01-01 12:38:30 +0000 (Thu, 01 Jan 2009) $" revision: "$Revision: 76534 $" class interface DATE_VALIDITY_CHECKER create default_create feature -- Preconditions date_valid (s: STRING_8; code_string: STRING_8): BOOLEAN -- Is the code_string enough precise -- To create an instance of type DATE -- And does the string s correspond to code_string? require s_exists: s /= Void code_exists: code_string /= Void date_valid_with_base (s: STRING_8; code_string: STRING_8; base: INTEGER_32): BOOLEAN -- Is the code_string enough precise -- To create an instance of type DATE -- And does the string s correspond to code_string? -- Use base century base. require s_exists: s /= Void code_exists: code_string /= Void base_valid: base > 0 and (base \\ 100 = 0) date_valid_default (s: STRING_8): BOOLEAN -- Is the code_string enough precise -- To create an instance of type DATE -- And does the string s correspond to -- date_default_format_string? require s_exists: s /= Void date_valid_default_with_base (s: STRING_8; base: INTEGER_32): BOOLEAN -- Is the code_string enough precise -- To create an instance of type DATE -- And does the string s correspond to -- date_default_format_string? -- Use base century base. require s_exists: s /= Void base_valid: base > 0 and (base \\ 100 = 0) compact_date_valid (c_d: INTEGER_32): BOOLEAN -- Is compact date c_d valid? ordered_compact_date_valid (c_d: INTEGER_32): BOOLEAN -- Is compact date c_d valid? is_correct_date (y, m, d: INTEGER_32): BOOLEAN -- Is date specified by y, m, and d a correct date? note copyright: "Copyright (c) 1984-2009, Eiffel Software and others" license: "Eiffel Forum License v2 (see http://www.eiffel.com/licensing/forum.txt)" source: "[ Eiffel Software 5949 Hollister Ave., Goleta, CA 93117 USA Telephone 805-685-1006, Fax 805-685-6869 Website http://www.eiffel.com Customer support http://support.eiffel.com ]" end -- class DATE_VALIDITY_CHECKER
Generated by ISE EiffelStudio