All Projects → jk-gan → Aion

jk-gan / Aion

Licence: mit
A friendly Rust utility crate for duration and datetime

Programming Languages

rust
11053 projects

Projects that are alternatives of or similar to Aion

Time.dart
⏰ Type-safe DateTime and Duration calculations, powered by extensions.
Stars: ✭ 363 (+881.08%)
Mutual labels:  datetime, duration
duration-humanizer
361000 becomes "6 minutes, 1 second"
Stars: ✭ 61 (+64.86%)
Mutual labels:  duration, datetime
Dateutils
nifty command line date and time utilities; fast date calculations and conversion in the shell
Stars: ✭ 458 (+1137.84%)
Mutual labels:  datetime
Recognizers Text
Microsoft.Recognizers.Text provides recognition and resolution of numbers, units, and date/time expressed in multiple languages (ZH, EN, FR, ES, PT, DE, IT, TR, HI. Partial support for NL, JA, KO, SV). Contributions are greatly welcome! Packages are available at https://www.nuget.org/profiles/Recognizers.Text and https://www.npmjs.com/~recognizers.text
Stars: ✭ 915 (+2372.97%)
Mutual labels:  datetime
Kolpa
A fake data generator written in and for Go
Stars: ✭ 645 (+1643.24%)
Mutual labels:  datetime
Timeago.js
🕗 ⌛ timeago.js is a tiny(2.0 kb) library used to format date with `*** time ago` statement.
Stars: ✭ 4,670 (+12521.62%)
Mutual labels:  datetime
Vue Datetime
Mobile friendly datetime picker for Vue. Supports date and datetime modes, i18n and more.
Stars: ✭ 928 (+2408.11%)
Mutual labels:  datetime
Calendarview
An Easy to Use Calendar for iOS (Swift 5.0)
Stars: ✭ 429 (+1059.46%)
Mutual labels:  datetime
React Calendar
A React Native inspired date list renderer
Stars: ✭ 34 (-8.11%)
Mutual labels:  datetime
Period
PHP's time range API
Stars: ✭ 616 (+1564.86%)
Mutual labels:  datetime
Time
Windows tool for measuring command/program execution speed
Stars: ✭ 21 (-43.24%)
Mutual labels:  duration
Carbon
A simple, semantic and developer-friendly golang package for datetime
Stars: ✭ 565 (+1427.03%)
Mutual labels:  datetime
Angular Moment Picker
Angular Moment Picker is an AngularJS directive for date and time picker using Moment.js.
Stars: ✭ 536 (+1348.65%)
Mutual labels:  datetime
Emacs Datetime
Stars: ✭ 8 (-78.38%)
Mutual labels:  datetime
Pendulum
Python datetimes made easy
Stars: ✭ 4,639 (+12437.84%)
Mutual labels:  datetime
Dayjs
⏰ Day.js 2kB immutable date-time library alternative to Moment.js with the same modern API
Stars: ✭ 37,373 (+100908.11%)
Mutual labels:  datetime
Jedate
jeDate V6.5.0 是一款原生JS开发的 不依赖任何第三方库 大众化的日期控件,她身兼多职,虽不是万能的,但是她却是功能强大多样的美少女,她除了包含 单双面板、区域选择、 多语言、日历固定、有效无效日期、日期时间戳转换、日期加减、限制时分秒、初始化日期加减N、日期标注点、设定年月(YYYY-MM)、日期范围限制、开始日期设定、自定义日期格式、当天的前后若干天返回、时分秒选择、智能响应、自动纠错、节日识别,操作等常规功能外,根据不同的日期格式,显示不同内容,还拥有更多趋近完美的解决方案。更多的是需要你与她的亲密接触与呵护!
Stars: ✭ 433 (+1070.27%)
Mutual labels:  datetime
Calendar Links
Generate add to calendar links for Google, iCal and other calendar systems
Stars: ✭ 544 (+1370.27%)
Mutual labels:  datetime
Nscala Time
A new Scala wrapper for Joda Time based on scala-time
Stars: ✭ 832 (+2148.65%)
Mutual labels:  datetime
Alignmentduration
Lyrics-to-audio-alignement system. Based on Machine Learning Algorithms: Hidden Markov Models with Viterbi forced alignment. The alignment is explicitly aware of durations of musical notes. The phonetic model are classified with MLP Deep Neural Network.
Stars: ✭ 36 (-2.7%)
Mutual labels:  duration

Aion

Aion is a utility crate, inspired by rails, that allows you to write Duration and DateTime in a friendly way:

// Easily represent a chrono::Duration
let two_days = 2.days();
let attention_span = 1.seconds();

// Add or subtract durations from the current time (UTC)
let now = Utc::now();
let three_hours_from_now = now + 3.hours();
let two_hours_from_now = 2.hours().from_now();
let last_week = 7.days().ago(); // or 1.weeks().ago()

// More complex DateTimes can be represented using before() and after() methods
let christmas = Utc.ymd(2020, 12, 25).and_hms(0, 0, 0);
let two_weeks_before_christmas = 2.weeks().before(christmas);
let boxing_day = 1.days().after(christmas);

Installation

Add this to your Cargo.toml file:

[dependencies]
aion = "0.2"

Example

The example is located in example folder. You can run it by using

cargo run --example example

Limitations

Currently this crate only will return DateTime<Utc>.

Acknowledgement

This crate is using chrono. Thanks for this awesome crate.

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].