🚨 Shai-Hulud Strikes Again:834 Packages Compromised.Technical Analysis →
Socket
Book a DemoInstallSign in
Socket

smarter_dates

Package Overview
Dependencies
Maintainers
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

smarter_dates

bundlerRubygems
Version
0.2.15
Version published
Maintainers
1
Created
Source

= SmarterDates -- Natural languange date parsing for all date/datetime attributes

machina to automatically parse (with the chronic gem) date/datetime attributes upon assignment

== Example

require File.join(File.dirname(FILE),'lib','smarter_dates')

class MyObject attr_accessor :birth_d

include SmarterDates

end

obj = MyObject.new obj.birth_d = '7 days ago'

puts obj.birth_d

=> Thu Apr 22 12:00:00 -0500 1976

== Use case

Humans want to think of date and datetime attributes in a natural manner. Standard ruby Date and DateTime objects do not support this well.

== Installation

% gem install smarter_dates

== License

Copyright (c) 2010 [Paul Belt], released under the MIT license

== Support

http://github.com/belt/smarter_dates

FAQs

Package last updated on 06 Jun 2013

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