# encoding: utf-8 require 'facets/time' time = Time.new(2013, 2, 5, 17, 42, 50) p time # => 2013-02-05 17:42:50 +0900 #------------------------------------------------------------------------------- # Time.elapse: ブãƒãƒƒã‚¯ã®å®Ÿè¡Œæ™‚間を計測ã™ã‚‹ p Time.elapse{ sleep(1) } # => 1.0000581741333008 #------------------------------------------------------------------------------- # stamp: 対象ã®æ—¥æ™‚を指定ã—ãŸãƒ•ã‚©ãƒ¼ãƒžãƒƒãƒˆã§æ–‡å—列化 # Time.st
{{#tags}}- {{label}}
{{/tags}}