class EL_ISO_8601_EXTENDED_DATE_TIME_CONVERSION

(source code)

description

Implementation of EL_DATE_TIME_CONVERSION for the extended form of the ISO-8601 date-time format

note
	description: "[
		Implementation of ${EL_DATE_TIME_CONVERSION} for the extended form of the
		[https://en.wikipedia.org/wiki/ISO_8601 ISO-8601 date-time format]
	]"

	author: "Finnian Reilly"
	copyright: "Copyright (c) 2001-2022 Finnian Reilly"
	contact: "finnian at eiffel hyphen loop dot com"

	license: "MIT license (See: en.wikipedia.org/wiki/MIT_License)"
	date: "2024-01-20 19:18:24 GMT (Saturday 20th January 2024)"
	revision: "5"

class
	EL_ISO_8601_EXTENDED_DATE_TIME_CONVERSION

inherit
	EL_ISO_8601_DATE_TIME_CONVERSION
		redefine
			make, Index_of_T, Input_string_count, put_T, put_separator
		end

create
	make

feature {NONE} -- Initialization

	make
		do
			make_format (Date_time.ISO_8601.date_extended + " " + Date_time.ISO_8601.time_extended)
		end

feature {NONE} -- Implementation

	put_T (out_string: STRING; old_count: INTEGER)
		do
			out_string [old_count + Index_of_T] := 'T'
		end

	put_separator (out_string: STRING)
		do
			out_string.append_character (' ')
		end

feature {NONE} -- Constants

	Index_of_T: INTEGER
		once
			Result := 11
		end

	Input_string_count: INTEGER
		once
			Result := 20
		end

end