time_diff ¶ ↑
Gem which calculates the difference between two time
Installation¶ ↑
gem install time_diff
Usage¶ ↑
require 'time_diff'
time_diff_components = Time.diff(start_date_time, end_
ValidatesTimeliness ¶ ↑
Source: github.com/adzap/validates_timeliness
Issues: github.com/adzap/validates_timeliness/issues
Description¶ ↑
Complete validation of dates, times and datetimes for Rails 5
time-lord
time-lord is a gem that gives you more human like expressions for time and space math. Underneath the covers time-lord gives you single purpose objects for handling the more complex parts of
Local Time
Local Time makes it easy to display times and dates to users in their local time. Its Rails helpers render <time> elements in UTC (making them cache friendly), and its JavaScript component immediately c
Groupdate
The simplest way to group by:
day
week
hour of the day
and more (complete list below)
?
Time zones - including daylight saving time - supported!! the best part
?
Get the entire seri
Chronic
Chronic is a natural language date/time parser written in pure Ruby. See below for the wide variety of formats Chronic will parse.
Installation
$ gem install chronic
Usage
require 'chr
ByStar
ByStar (by_*) allows you easily and reliably query ActiveRecord and Mongoid objects based on time.
Examples
Post.by_year(2013) # all posts in 2013
Post.before(Date.today
business_time¶ ↑
ActiveSupport gives us some great helpers so we can do things like:
5.days.ago
and
8.hours.from_now
as well as helpers to do that from any provided date or time.
I needed this, but taking into
Time calculations using business hours.
Features
Support for:
Multiple intervals per day.
Multiple schedule configurations.
Intervals spanning the entire day.
Holidays.
Breaks (time-s
TZInfo - Ruby Time Zone Library
TZInfo is a Ruby library that provides access to time zone data and allows times to be converted using time zone rules.
Data Sources
TZInfo requires a source of time zone