Sha256: 64079e3f807778ca05055e0eff729648174ce970ffa9f316de1af67584688136

Contents?: true

Size: 582 Bytes

Versions: 6

Compression:

Stored size: 582 Bytes

Contents

# frozen_string_literal: true



def format_time
  time = Time.now
  {
    year: time.year,
    month: time.month,
    day: time.day,
    hour: time.hour,
    minute: time.min,
    second: time.sec
  }
end

# Exemple d'utilisation

t=text({data: "message here", id: :messenger})

schedule_task('every_minute_task', format_time[:year], format_time[:month], format_time[:day], format_time[:hour], format_time[:minute], format_time[:second]+5, recurrence: :minutely) do
  t.data("every minute i change from :#{format_time}, now : #{format_time[:minute]} , #{format_time[:second]}")
end

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
atome-0.5.7.6.0 vendor/assets/application/examples/schedule.rb
atome-0.5.7.5.9 vendor/assets/application/examples/schedule.rb
atome-0.5.7.5.4 vendor/assets/application/examples/schedule.rb
atome-0.5.7.5.3 vendor/assets/application/examples/schedule.rb
atome-0.5.7.5.1 vendor/assets/application/examples/schedule.rb
atome-0.5.7.4.8 vendor/assets/application/examples/schedule.rb