note description: "Facility routines to check the validity of TIMEs" legal: "See notice at end of class." status: "See notice at end of class." date: "$Date: 2017-03-29 12:26:46 +0000 (Wed, 29 Mar 2017) $" revision: "$Revision: 100065 $" class interface TIME_VALIDITY_CHECKER create default_create feature -- Preconditions time_valid (s: STRING_8; code_string: STRING_8): BOOLEAN -- Is the code_string enough precise -- to create an instance of type TIME? -- And does the string s correspond to code_string? require s_exists: s /= Void code_exists: code_string /= Void compact_time_valid (c_t: INTEGER_32): BOOLEAN -- Is compact time c_t valid? is_correct_time (h, m: INTEGER_32; s: REAL_64; twelve_hour_scale: BOOLEAN): BOOLEAN -- Is time represented by h, m, code, and s correct? -- twelve_hour_scale specifies if the hour range is 1 - 12 -- (if True) or 0 - 23 (if False). note copyright: "Copyright (c) 1984-2017, 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 TIME_VALIDITY_CHECKER
Generated by ISE EiffelStudio