class Blufin::DateTimeUtils

Public Class Methods

now(format = nil) click to toggle source

Returns the current DateTime as string. Default format is: %d/%m/%Y %H:%M:%S @return String

# File lib/core/datetime_utils.rb, line 7
def self.now(format = nil)
    format = '%Y/%m/%d %H:%M:%S' if format.nil?
    Time.now.strftime(format)
end