indexing
description: "Facility routines to check the validity of DATEs"
status: "See note at end of class"
date: "$Date$"
revision: "$Revision$"
class interface
DATE_VALIDITY_CHECKER
feature
compact_date_valid (c_d: INTEGER): BOOLEAN
c_d
date_valid (s: STRING; code_string: STRING): BOOLEAN
DATE
scode_string
require
s_exists: s /= void
code_exists: code_string /= void
date_valid_default (s: STRING): BOOLEAN
DATE
s
date_default_format_string
require
s_exists: s /= void
date_valid_default_with_base (s: STRING; base: INTEGER): BOOLEAN
DATE
s
date_default_format_string
base
require
s_exists: s /= void
base_valid: base > 0 and (base \\ 100 = 0)
date_valid_with_base (s: STRING; code_string: STRING; base: INTEGER): BOOLEAN
DATE
scode_string
base
require
s_exists: s /= void
code_exists: code_string /= void
base_valid: base > 0 and (base \\ 100 = 0)
is_correct_date (y, m, d: INTEGER): BOOLEAN
ymd
invariant
ANY
reflexive_equality: standard_is_equal (Current)
reflexive_conformance: conforms_to (Current)
end -- DATE_VALIDITY_CHECKER