note description: "Universal constants about dates" 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 $" access: date class interface DATE_CONSTANTS create default_create feature -- Access Days_in_week: INTEGER_32 = 7 -- Number of days in a week Max_weeks_in_year: INTEGER_32 = 53 -- Maximun number of weeks in a year Months_in_year: INTEGER_32 = 12 -- Number of months in year Days_in_leap_year: INTEGER_32 = 366 -- Number of days in a leap year Days_in_non_leap_year: INTEGER_32 = 365 -- Number of days in a non-leap year days_in_i_th_month (i, y: INTEGER_32): INTEGER_32 -- Number of days in the i th month at year y require i_large_enough: i >= 1 i_small_enough: i <= Months_in_year date_default_format_string: STRING_8 -- Default output format for dates days_text: ARRAY [STRING_8] -- Short text representation of days months_text: ARRAY [STRING_8] -- Short text representation of months long_days_text: ARRAY [STRING_8] -- Long text representation of days long_months_text: ARRAY [STRING_8] -- Long text representation of months feature -- Status report is_leap_year (y: INTEGER_32): BOOLEAN -- Is year y a leap year? 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 DATE_CONSTANTS
Generated by ISE EiffelStudio