human-date - Making dates and times readable for humans.

  •        50

Making dates and times readable for humans.Forks and pull requests are most welcomed.

https://github.com/montanaflynn/human-date

Tags
Implementation
License
Platform

   




Related Projects

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.

Human Interval - Human readable time distances for javascript

  •    Javascript

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.

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.

PrettyTimestamp - An NSDate Category that returns human readable, pretty timestamps between two dates

  •    Objective-C

An NSDate Category that returns human readable, pretty timestamps between two dates. Automatically orders dates for you so no need to worry about which is earliest. Just call one of the three category methods and you're done :).


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.

humanize - python humanize functions

  •    Python

This modest package contains various common humanization utilities, like turning a number into a fuzzy human readable duration ('3 minutes ago') or into a human readable size or throughput. It works with python 2.7 and 3.3 and is localized to Russian, French, Korean and Slovak.You can pass additional parameter path to :func:`activate` to specify a path to search locales in.

humanhash - Human-readable digests.

  •    Python

humanhash provides human-readable representations of digests. Don't store the humanhash output, as its statistical uniqueness is only around 1 in 4.3 billion. Its intended use is as a human-readable (and, most importantly, memorable) representation of a longer digest, unique enough for display in a user interface, where a user may need to remember or verbally communicate the identity of a hash, without having to remember a 40-character hexadecimal sequence. Nevertheless, you should keep original digests around, then pass them through humanize() only as you're displaying them.

kronic - A dirt simple library for parsing and formatting human readable dates

  •    Ruby

A dirt simple library for parsing and formatting human readable dates

Chronology - Building a better date/time library for Swift

  •    Swift

Chronology is an attempt to build a better date and time API for Swift on top of the constructs provided by Foundation. Foundation.framework has one of the absolute best and most capable APIs available to any developer on any platform. However, it comes with a heavy price in the form of cognitive load. Too many developers do too many incorrect things. Over the years, Foundation has gained more and more convenience methods via the Calendar type, but fundamental issues remain.

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).

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.

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.

stamp - Date and time formatting for humans.

  •    Ruby

Format dates and times based on human-friendly examples, not arcane strftime directives. Just gem install stamp, or add stamp to your Gemfile and bundle install.

pretty-bytes - Convert bytes to a human readable string: 1337 → 1.34 kB

  •    Javascript

Useful for displaying file sizes for humans.Note that it uses base-10 (e.g. kilobyte). Read about the difference between kilobyte and kibibyte.

lsp - lsp is like ls command but more human-friendly

  •    Go

-t key for when you are interested in modification time. It turns to the mode that makes most sense to me when I want to look up modtimes, sorted within file groups from recent to latest: Sometimes relative times are not very readible as well (like when you are interested in a specific date), use two flags -sl to show the full UTC timestamp in properties. The file information is collected asynchronously, BFS-like, with a separate thread for each file and a timeout threshold.

calendar - Date range picker for Baremetrics

  •    Javascript

The Baremetrics date range picker is a simplified solution for selecting both date ranges and single dates all from a single calender view. There aren't a billion options but the code is pretty basic and modular so feel free to edit however to meet your own needs. Using the date picker is pretty simple, you've just got to make a couple choices and include a couple settings. Create a div with a daterange class and then either the daterange--double or daterange--single classname for targeting the specific calendar you'd like to generate.

SwiftDate - The best way to manage Dates and Timezones in Swift

  •    Swift

We really ♥ Swift and we think that dates and timezones management should be painless: this is the reason we made SwiftDate, probably the best way to manage date and time in Swift.