-
-
Save mistyrinth/303e278fe6f55a34b97ccdf66ba0669d to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
w = %w[日 月 火 水 木 金 土] | |
t = Time.now | |
puts "#{t.year}年#{t.month}月#{t.day}日#{w[t.wday]}曜日" | |
puts "#{t.hour}時#{t.min}分#{t.sec}秒" | |
puts "タイムゾーンは #{t.zone}" | |
puts "今年の元旦から #{t.yday} 日目" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment