maya - Datetimes for Humans™

  •        24

Datetimes are very frustrating to work with in Python, especially when dealing with different locales on different systems. This library exists to make the simple things much easier, while admitting that time is an illusion (timezones doubly so). Datetimes should be interacted with via an API written for humans.

https://github.com/kennethreitz/maya

Tags
Implementation
License
Platform

   




Related Projects

timex - A complete date/time library for Elixir projects.

  •    Elixir

Timex is a rich, comprehensive Date/Time library for Elixir projects, with full timezone support via the :tzdata package. If you need to manipulate dates, times, datetimes, timestamps, etc., then Timex is for you! It is very easy to use Timex types in place of default Erlang types, as well as Ecto types via the timex_ecto package. The complete documentation for Timex is located here.

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.

calendar - date-time and time zone handling in Elixir

  •    Elixir

Calendar is a datetime library for Elixir. Providing explicit types for datetimes, dates and times. Full timezone support via its sister package tzdata.

records - SQL for Humans™

  •    Python

Records is a very simple, but powerful, library for making raw SQL queries to most relational databases. Just write SQL. No bells, no whistles. This common task can be surprisingly difficult with the standard tools available. This library strives to make this workflow as simple as possible, while providing an elegant interface to work with your query results.

validates_timeliness - Date and time validation plugin for ActiveModel and Rails

  •    Ruby

Complete validation of dates, times and datetimes for Rails 4.x and ActiveModel. If you a looking for the old version for Rails 3.x go here.


Luxon - A library for working with dates and times in JS

  •    Javascript

Luxon is a library for working with dates and times in Javascript. It supports DateTime, Duration, and Interval types. It is Immutable, chainable and it can parse and formatting for common and custom formats.

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.

requests-html - Pythonic HTML Parsing for Humans™

  •    HTML

This library intends to make parsing HTML (e.g. scraping the web) as simple and intuitive as possible.

DateTools - Dates and times made easy in iOS

  •    Objective-C

DateTools was written to streamline date and time handling in iOS. Classes and concepts from other languages served as an inspiration for DateTools, especially the DateTime structure and Time Period Library for .NET. Through these classes and others, DateTools removes the boilerplate required to access date components, handles more nuanced date comparisons, and serves as the foundation for entirely new concepts like Time Periods and their collections.

moment

  •    PHP

Date library for parsing, manipulating and formatting dates w/ i18n. PHP 5.3 or later since moment.php is based on php's DateTime Class.

spacetime - A lightweight javascript timezone library

  •    Javascript

Make add, subtract, hour, date, day, month, quarter, and goto methods all return a new instance of Spacetime leaving original date instance unmutated. There is another situation where you may see a console.warn - if you give it a timezone, but then set a ISO-date string with a different offset, like 2017-04-03T08:00:00-0700 (-7hrs UTC offset). It sets the timezone to UTC-7, but also gives a warning.

libhdate, hcal and hdate

  •    C

libhdate is a C library for Hebrew calendar information, including dates, holidays, and times of day. The package includes: hcal and hdate, command line programs for the Hebrew calendar, dates and times of day information. Also included are library bindings to other programming languages (C++, pascal, python, perl, ruby, php). The api is also of general use for calculating solar times anywhere on Earth for any astronomical date (julian day number).

SharePoint DateTime Column by ArtfulBits

  •    

ArtfulBits DateTime Column is similar to standard SharePoint DateTime column. Essential feature of our component is cross-browser support (IE, Mozilla, Opera, Safari and Google Chrome compatible). The column allows to select dates and times and specify display settings.

vim-speeddating - speeddating.vim: use CTRL-A/CTRL-X to increment dates, times, and more

  •    Vim

Several date, time, and datetime formats are included. Additional formats can be defined in a strftime-like syntax with the :SpeedDatingFormat command. Existing Vim semantics are preserved. <C-A> and <C-X> accept a count, and plain number incrementing is used if no date format is matched.

pendulum - Python datetimes made easy

  •    Python

Python datetimes made easy. Supports Python 2.7+, 3.4+ and PyPy.

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.

Chronyk - A Python 3 library for parsing human-written times and dates

  •    Python

A small Python 3 library containing some handy tools for handling time, especially when it comes to interfacing with those pesky humans. By default, the Chronyk constructor uses local time, and every method by default uses whatever was passed to the constructor as well.

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.

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.

daterangepicker - JavaScript Date Range, Date and Time Picker Component

  •    Javascript

This date range picker component creates a dropdown menu from which a user can select a range of dates. I created it while building the UI for Improvely, which needed a way to select date ranges for reports. Features include limiting the selectable date range, localizable strings and date formats, a single date picker mode, a time picker, and predefined date ranges.