/tutorial/time/example4.e
http://github.com/tybor/Liberty · Specman e · 27 lines · 21 code · 3 blank · 3 comment · 0 complexity · 0c428896714f5f0103eaf6651faddda6 MD5 · raw file
- class EXAMPLE4
- --
- -- Using the TIME_IN_FRENCH class.
- --
- create {ANY}
- make
- feature {}
- make
- local
- time: TIME; format: TIME_IN_FRENCH
- do
- time.update
- create format
- format.set_time(time)
- io.put_string("Le grand format :%N")
- format.set_short_mode(False)
- format.print_on(io)
- io.put_new_line
- io.put_string("Le petit format :%N")
- format.set_short_mode(True)
- format.print_on(io)
- io.put_new_line
- end
- end -- class EXAMPLE4