Chronic
local_time
Chronic | local_time | |
---|---|---|
5 | 3 | |
3,224 | 1,879 | |
- | 0.9% | |
0.0 | 6.9 | |
8 months ago | about 2 months ago | |
Ruby | CoffeeScript | |
MIT License | MIT License |
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.
Chronic
-
Humane Rails Forms
There's actually a lot of issues and PRs for Chronic at https://github.com/mojombo/chronic that could make it a more capable library and fix some of these issues.
- A declarative DSL for calendar events and scheduling
- Chronic: A pure Ruby natural language date parser
-
Safari's date-picker is the cause of 1/3 of our customer support issues
In my web apps, I make dates text boxes that can handle inputs like “next Thursday”, “Monday at 5p”, etc by running the inputs through https://github.com/mojombo/chronic
I like the idea of inputs being able to make sense of as wide of a variety or formats as possible.
For number inputs I’d like to build into Rails something that can handle basic math expressions. For example, a person can enter “120 / 2” in an input and get 60. This is useful for expense apps where you need to expense half of something.
-
Dte: A language for expressing and calculating date and time
Reminds me of the Ruby library chronic https://github.com/mojombo/chronic
It's pretty good at natural language interpretation of dates, and the basic "from today" calculations, but cool to also see here natural expressions to parse between dates.
local_time
-
Yet another timezone question
you might find https://github.com/basecamp/local_time more appealing, if possible.
-
How do I Make My created_at Timestamps set to the User timezone?
The local_time package works well for me.
-
How to detect user timezone in larval? I'm using moment js, but sometimes it passes invalid timezone to laravel.
2) Format timestamps on the client side - you could look at something like [`local_time`](https://github.com/basecamp/local_time) for inspiration.
What are some alternatives?
ice_cube - Ruby Date Recurrence Library - Allows easy creation of recurrence rules and fast querying
TZinfo - TZInfo - Ruby Timezone Library
groupdate - The simplest way to group temporal data
business_time - Support for doing time math in business hours and days
time-lord - time-lord is a ruby gem that adds extra functionality to the time class.
fugit - time tools (cron, parsing, durations, ...) for Ruby, rufus-scheduler, and flor
ByStar - Lets you find ActiveRecord + Mongoid objects by year, month, fortnight, week and more!
validates_timeliness - Date and time validation plugin for ActiveModel and Rails. Supports multiple ORMs and allows custom date/time formats.