20 stable releases (5 major)
Uses old Rust 2015
new 5.3.1 | Feb 22, 2021 |
---|---|
5.3.0 | Sep 27, 2020 |
5.2.0 | Apr 16, 2020 |
4.3.0 | Apr 6, 2020 |
0.1.0 | May 25, 2018 |
#35 in Date and time
82 downloads per month
Used in dia-args
62KB
1K
SLoC
lib.rs
:
A small time kit
Project
- Repository: https://bitbucket.org/haibison/dia-time
- License: Nice License 1.0.0 (see LICENSE file at root directory of
master
branch) - This project follows Semantic Versioning 2.0.0
Features
- Constants as seconds:
MINUTE
,HOUR
,DAY
,WEEK
. - Constants as milliseconds:
millis::SECOND
,millis::MINUTE
,millis::HOUR
,millis::DAY
,millis::WEEK
. - Other modules:
micros
,nanos
,decis
,centis
,picos
,femtos
,attos
,zeptos
,yoctos
. - And some helper functions for formatting time...
Some components require lib-c
feature. If you can't access them, you should enable that feature. For example:
[dependencies]
dia-time = { version='...', features=['lib-c'] }
Notes
The crate uses #![no_std]
by default. Documentation is built with all features, which include std
. If you see some components from
std
crate, you have to use that feature.