Class: TasksScheduler::CronParserPatch::TasksSchedulerTimeSource

Inherits:
Object
  • Object
show all
Defined in:
lib/tasks_scheduler/cron_parser_patch.rb

Class Method Summary collapse

Class Method Details

.local(year, month, day, hour, min, second) ⇒ Object



5
6
7
# File 'lib/tasks_scheduler/cron_parser_patch.rb', line 5

def local(year, month, day, hour, min, second)
  Time.utc(year, month, day, hour, min, second)
end

.nowObject



9
10
11
# File 'lib/tasks_scheduler/cron_parser_patch.rb', line 9

def now
  Time.now.utc
end