ruby datetime code example
Example 1: ruby get current datetime
require 'date'
current_datetime = DateTime.now
Example 2: ruby get current datetime utc
DateTime.now.getutc
require 'date'
current_datetime = DateTime.now
DateTime.now.getutc