method

current

v5.2.3 - Show latest stable - Class: DateTime
current()
public

Returns Time.zone.now.to_datetime when Time.zone or config.time_zone are set, otherwise returns Time.now.to_datetime.