Module: TimeHelper

Included in:
IssueManager, LogManager, Repository
Defined in:
lib/devlogs/helper/time_helper.rb

Constant Summary collapse

TIME_FORMAT_FILE_PREFIX =

Example: 11-22-2022__13h43m

"%m-%d-%Y__%kh%Mm"

Instance Method Summary collapse

Instance Method Details

#current_time(format: TIME_FORMAT_FILE_PREFIX) ⇒ Object



7
8
9
10
# File 'lib/devlogs/helper/time_helper.rb', line 7

def current_time(format: TIME_FORMAT_FILE_PREFIX)
  time = Time.new
  time.strftime(format)
end