Method: DateTime#to_zoned_date_time

Defined in:
lib/openhab/core_ext/ruby/date_time.rb

#to_zoned_date_time(context = nil) ⇒ ZonedDateTime

Parameters:

  • context (ZonedDateTime, nil) (defaults to: nil)

    A ZonedDateTime used to fill in missing fields during conversion. Not used in this class.

Returns:



44
45
46
# File 'lib/openhab/core_ext/ruby/date_time.rb', line 44

def to_zoned_date_time(context = nil) # rubocop:disable Lint/UnusedMethodArgument
  to_java(ZonedDateTime)
end