diff --git a/src/time.cr b/src/time.cr index 7fa6411e9e3a..277ca50382cd 100644 --- a/src/time.cr +++ b/src/time.cr @@ -37,12 +37,12 @@ require "crystal/system/time" # # ``` # time = Time.utc(2016, 2, 15, 10, 20, 30) -# time.to_s # => 2016-02-15 10:20:30 UTC +# time.to_s # => 2016-02-15 10:20:30 UTC # time = Time.new(2016, 2, 15, 10, 20, 30, location: Time::Location.load("Europe/Berlin")) -# time.to_s # => 2016-02-15 10:20:30 +01:00 Europe/Berlin -# The time-of-day can be omitted and defaults to midnight (start of day): +# time.to_s # => 2016-02-15 10:20:30 +01:00 Europe/Berlin +# # The time-of-day can be omitted and defaults to midnight (start of day): # time = Time.utc(2016, 2, 15) -# time.to_s # => 2016-02-15 00:00:00 UTC +# time.to_s # => 2016-02-15 00:00:00 UTC # ``` # # ### Retrieving Time Information