note
	description: "Date/Time Measurement"
	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 $"

deferred class 
	DATE_TIME_MEASUREMENT

inherit
	DATE_CONSTANTS

	TIME_CONSTANTS

feature -- Access

	date: DATE_MEASUREMENT
			-- Date corresponding to current object
		deferred
		end

	time: TIME_MEASUREMENT
			-- Time corresponding to current object
		deferred
		end

	year: INTEGER_32
			-- Year of the current object
		do
			Result := date.year
		ensure
			same_year: Result = date.year
		end

	month: INTEGER_32
			-- Month of the current object
		do
			Result := date.month
		ensure
			same_month: Result = date.month
		end

	day: INTEGER_32
			-- Day of the current object
		do
			Result := date.day
		ensure
			same_day: Result = date.day
		end

	hour: INTEGER_32
			-- Hour of the current object
		do
			Result := time.hour
		ensure
			same_hour: Result = time.hour
		end

	minute: INTEGER_32
			-- Minute of the current object
		do
			Result := time.minute
		ensure
			same_minute: Result = time.minute
		end

	second: INTEGER_32
			-- Second of the current object
		do
			Result := time.second
		ensure
			same_second: Result = time.second
		end

	fine_second: REAL_64
			-- Representation of second with decimals
		do
			Result := time.fine_second
		ensure
			same_fine_second: Result = time.fine_second
		end
	
invariant
	date_exists: date /= Void
	time_exists: time /= Void

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_TIME_MEASUREMENT

Generated by ISE EiffelStudio