New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

date_time-smart

Package Overview
Dependencies
Maintainers
2
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

date_time-smart

  • 0.0.3
  • Rubygems
  • Socket score

Version published
Maintainers
2
Created
Source

= date_time-smart

== Synopsis

require 'date_time-duration' require 'date_time-smart'

DateTime::Smart.new(1984, 12, 26).add(years => 1).subtract(:day => 1).to_s #=> "1985-12-25T00:00:00" dt = DateTime::Smart.new(2007, 12, 25) birth = DateTime::Smart.new(1984, 12, 26)

if you subtract DateTime from DateTime::Smart instance, you got DateTime::Duration instance.

( dt - birth ).years #=> 22

== Description

wrapper of date_time using datetime-duration.

== Installation

=== Archive Installation

rake install

=== Gem Installation

gem install date_time-smart

== Features/Problems

== Copyright

Author:: Keiji, Yoshimi Copyright:: Copyright (c) 2007 Keiji, Yoshimi License:: you can redistribute it and/or modify it under the same terms as Ruby itself.

FAQs

Package last updated on 25 Jul 2009

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc