26 stable releases (7 major)
7.0.0 | Oct 30, 2022 |
---|---|
6.2.2 | Aug 8, 2022 |
6.2.1 | Jul 3, 2022 |
6.1.0 | May 7, 2021 |
0.1.0 | May 25, 2018 |
#77 in Date and time
68 downloads per month
Used in dia-args
84KB
1.5K
SLoC
A small time kit
Project
- Repository: https://bitbucket.org/haibison/dia-time
- License: GNU Lesser General Public License, either version 3, or (at your option) any later version.
- 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
Documentation is built with all features. Some of them are optional. If you see components from other crates, you can view source to see what features are required.