Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions code/imperative-programming/time_converter.ml
Original file line number Diff line number Diff line change
Expand Up @@ -6,10 +6,10 @@ let () =
match In_channel.input_line stdin with
| None -> failwith "No timezone provided"
| Some zone_string ->
let zone = Zone.find_exn zone_string in
let zone = Time.Zone.find_exn zone_string in
let time_string = Time.to_string_abs (Time.now ()) ~zone in
Out_channel.output_string stdout
(String.concat
["The time in ";Zone.to_string zone;" is ";time_string;".\n"]);
["The time in ";Time.Zone.to_string zone;" is ";time_string;".\n"]);
Out_channel.flush stdout