A simple HTTP Request & Response Service. Run locally: $ docker run -p 80:80 kennethreitz/httpbin
# Rubygemsを使用することを明示 require 'rubygems' # ActiveSupportを使用することを明示 require 'active_support' # ActiveSupportに含まれる時間系の拡張機能(ライブラリ)を使用することを明示 require 'active_support/time' # 現在時刻 p Time.now # 1時間前(60秒*60分)の時刻 p 1.hours.ago どうでしょうか? Time.now - 60*60 よりも 1.hours.ago の方が分かりやすく無いですか? Time.now - 1.hour などでも大丈夫です。 分かりやすいと思う方を使ってください。 RubyGemsで配布されている「ActiveSupport」というライブラリを使っています。 Ruby on RailsはRubygemsを沢山使っ
The content below is still correct, but has been absorbed into the more comprehensive safe exception handling tutorial document instead. I recommend reading that, which provides more information and more up-to-date library references. Over the years, I’ve written a number of different documents, tutorials, comments, and libraries on how to do proper exception handling in Haskell. Most of this has
More than 5,000 companies count on our digital courses and more to guide their teams through the tools and technologies that drive business outcomes. We can help yours too. New AI policy for O’Reilly authors and talent O’Reilly president Laura Baldwin shares the company’s ethical approach to leveraging GenAI tools and ensuring O’Reilly experts are compensated for their work. See it now It’s time t
リリース、障害情報などのサービスのお知らせ
最新の人気エントリーの配信
処理を実行中です
j次のブックマーク
k前のブックマーク
lあとで読む
eコメント一覧を開く
oページを開く