Class: Command

Inherits:
Thor
  • Object
show all
Defined in:
bin/jj

Instance Method Summary collapse

Instance Method Details

#to_date(timestamp) ⇒ Object



11
12
13
# File 'bin/jj', line 11

def to_date(timestamp)
  puts JJ.new.todate(timestamp)
end

#to_timestamp(date, time = '00:00:00') ⇒ Object



16
17
18
19
20
21
22
23
# File 'bin/jj', line 16

def to_timestamp(date, time='00:00:00')
  puts JJ.new.totimestamp(
    {
      date: date,
      time: time,
    }
  )
end