ruby - How do I use the DateTime class? -
can tell me why can use datetime class when gem use returns datetime object?
when in documentation don't see listed under classes. need require specific use it?
datetime
class in standard library. isn't automatically included, kernel
, example, need require 'date'
before becomes available.
the documentation datetime can found in stdlib 1.9.3 docs.
Comments
Post a Comment