[flux] print current time
This commit is contained in:
parent
21a0c28bb1
commit
5d988f91b7
1 changed files with 1 additions and 0 deletions
1
flux
1
flux
|
|
@ -44,6 +44,7 @@ def flux(options)
|
||||||
hour, min = time.hour, time.min
|
hour, min = time.hour, time.min
|
||||||
padded_min = min < 10 ? "0#{min}" : "#{min}"
|
padded_min = min < 10 ? "0#{min}" : "#{min}"
|
||||||
now = "#{hour}:#{padded_min}"
|
now = "#{hour}:#{padded_min}"
|
||||||
|
puts "current time: #{now}"
|
||||||
found =
|
found =
|
||||||
if options[:set_current]
|
if options[:set_current]
|
||||||
now = now.sub(':', '').to_i
|
now = now.sub(':', '').to_i
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue