Guest User

Untitled

a guest
Jan 22nd, 2019
87
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.15 KB | None | 0 0
  1. DateTime.now.strftime("%H:%M")
  2. # => "12:17"
  3.  
  4. #!/usr/bin/ruby -w
  5. time1 = Time.now
  6. puts "Current Time : " + time1.hour + ":" + time1.min + ":" + time1.sec
Add Comment
Please, Sign In to add comment