Human Interval - Human readable time distances for javascript

  •        60

Human readable interval parser for Javascript. Human Interval supports numbers up to ten being written out in English. If you want to extend it, you can do so by adding more keys to the language map. Alternatively you could add support for alternative languages.

https://github.com/agenda/human-interval

Tags
Implementation
License
Platform

   




Related Projects

Time4J - Advanced date, time and interval library for Java

  •    Java

Time4J is thought as a complete and high-end replacement for old java classes around java.util.Date, java.util.Calendar and java.text.SimpleDateFormat. This project is also intended as first-class alternative to the popular libraries JodaTime and its successor JSR-310 (Threeten) since the target audience of Time4J will not only be business Java developers, but also developers with a more scientific background (for example extended time scale support including leap seconds or historically accurate dates).

chronic - Chronic is a pure Ruby natural language date parser.

  •    Ruby

Chronic is a natural language date/time parser written in pure Ruby. See below for the wide variety of formats Chronic will parse. If the parser can find a date or time, either a Time or Chronic::Span will be returned (depending on the value of :guess). If no date or time can be found, nil will be returned.

parsedatetime - Parse human-readable date/time strings

  •    Python

Parse human-readable date/time strings. Python 2.6 or greater is required for parsedatetime version 1.0 or greater.

date - Date() for humans

  •    Javascript

Date is an english language date parser for node.js and the browser. date.js now has much better NLP support.


countdownjs - A simple JavaScript API for producing an accurate, intuitive description of the timespan between two Date instances

  •    Javascript

A simple JavaScript API for producing an accurate, intuitive description of the timespan between two Date instances. While seemingly a trivial problem, the human descriptions for a span of time tend to be fuzzier than a computer naturally computes. More specifically, months are an inherently messed up unit of time. For instance, when a human says "in 1 month" how long do they mean? Banks often interpret this as thirty days but that is only correct one third of the time. People casually talk about a month being four weeks long but there is only one month in a year which is four weeks long and it is only that long about three quarters of the time. Even intuitively defining these terms can be problematic. For instance, what is the date one month after January 31st, 2001? JavaScript will happily call this March 3rd, 2001. Humans will typically debate either February 28th, 2001 or March 1st, 2001. It seems there isn't a "right" answer, per se.

Datejs - A JavaScript Date Library

  •    Javascript

Datejs is an open source JavaScript Date library for parsing, formatting and processing. Comprehensive, yet simple, stealthy and fast. Datejs has passed all trials and is ready to strike. Datejs doesn’t just parse strings, it slices them cleanly in two.

PrettyTime - Social Style Date and Time Formatting for Java

  •    Java

PrettyTime is an OpenSource time formatting library. Completely customizable, it creates human readable, relative timestamps like those seen on Digg, Twitter, and Facebook. It has support for over 30 languages.

moment - Parse, validate, manipulate, and display dates in javascript.

  •    Javascript

A lightweight JavaScript date library for parsing, validating, manipulating, and formatting dates.Moment 2.10.0 does not bring any new features, but the code is now written in ECMAScript 6 modules and placed inside src/. Previously moment.js, locale/*.js and test/moment/*.js, test/locale/*.js contained the source of the project. Now the source is in src/, temporary build (ECMAScript 5) files are placed under build/umd/ (for running tests during development), and the moment.js and locale/*.js files are updated only on release.

DateTimeRoutines

  •    CSharp

.NET Date Time Parser class. It finds the first instance of date and/or time within the passed string and converts it into DateTime. It's somewhat like Perl's str2time() or PHP's strtotime(). See more in codeproject article 'C# Date Time Parser'

parse5 - HTML parsing/serialization toolset for Node

  •    Javascript

HTML parsing/serialization toolset for Node.js. WHATWG HTML Living Standard (aka HTML5)-compliant.parse5 provides nearly everything you may need when dealing with HTML. It's the fastest spec-compliant HTML parser for Node to date. It parses HTML the way the latest version of your browser does. It has proven itself reliable in such projects as jsdom, Angular2, Polymer and many more.

date-fns - ⏳ Modern JavaScript date utility library ⌛️

  •    Javascript

⚠️ Warning: the current master represents v2 pre-release version of the library. See v1 branch.Pinned: see a brief comparison with Moment.js.

Joda Time - Java Date and Time API

  •    Java

Joda-Time provides a quality replacement for the Java date and time classes. The standard date and time classes prior to Java SE 8 are poor. By tackling this problem head-on, Joda-Time has become the de facto standard date and time library for Java. The design allows for multiple calendar systems, while still providing a simple API. The 'default' calendar is the ISO8601 standard which is used by XML. The Gregorian, Julian, Buddhist, Coptic, Ethiopic and Islamic systems are also included.

duckling - Probabilistic parser

  •    Clojure

Duckling is a Clojure library that parses text into structured data: “the first Tuesday of October” => {:value "2014-10-07T00:00:00.000-07:00" :grain :day}<div class="doc-website-link"> <p>You can try it out at <a href="http://duckling-lib.org">http://duckling-lib.org</a></p></div>See our [blog post announcement](https://wit.ai/blog/2014/10/01/open-source-parser-duckling) for more context.Duckling is shipped with modules that parse temporal expressions i

lubridate - Make working with dates in R just that little bit easier

  •    R

Date-time data can be frustrating to work with in R. R commands for date-times are generally unintuitive and change depending on the type of date-time object being used. Moreover, the methods we use with date-times must be robust to time zones, leap days, daylight savings times, and other time related quirks, and R lacks these capabilities in some situations. Lubridate makes it easier to do the things R does with date-times and possible to do the things R does not. If you are new to lubridate, the best place to start is the date and times chapter in R for data science.

when - A natural language date/time parser with pluggable rules

  •    Go

Check EN and RU rules and tests for them, for more examples.Needed rule not found? Open an issue with the case and it will be added asap.

tinydate - A tiny (337B) reusable date formatter. Extremely fast!

  •    Javascript

The template pattern to be parsed. The date from which to retrieve values. Defaults to current datetime.

dayjs - ⏰ Day.js 2KB immutable date library alternative to Moment.js with the same modern API

  •    Javascript

Day.js is a minimalist JavaScript library that parses, validates, manipulates, and displays dates and times for modern browsers with a largely Moment.js-compatible API. If you use Moment.js, you already know how to use Day.js. It's easy to use Day.js APIs to parse, validate, manipulate, and display dates and times.

date-utils - Date Pollyfills for Node.js and Browser

  •    Javascript

Note: This did not work in the REPL before Node.js 0.6 due to how Node.js handles context in the REPL. Make sure you have gulp installed (npm install gulp -g). After that hit npm install to get the dependencies. Finally, hit gulp. This will build the library initially. If you make changes to the library, it will compile the minified version automatically.

Time4A - Advanced Date and Time Library for Android

  •    Java

Time4A is an advanced Date and Time Library for Android. This project is a specialized version of Time4J-v3.x (using the branch level6 - starting with version v3.5) and distributes an AAR-library suitable for the Android platform. It is not modularized like Time4J itself, but its (single) artifact "time4j-android" replaces the Time4J-modules "core", "i18n", "calendar", "olson" and "tzdata". Hence the only Time4J-modules which might be combined with this AAR-library are just "misc" and "range" if needed.