Time Duration API
The Time Duration Library provides functionalities for handling time and durations in Rust. It offers features to manage specific points in time and durations, along with various formatting options and arithmetic operations.
Features
- Time Handling: Represent specific points in time with the Time struct.
- Duration Management: Manage durations of time with the CustomDuration struct.
- Time Formatting: Format time instances into strings with custom formats.
- Timezone Support: Convert times between different timezones seamlessly.
- Arithmetic Operations: Add, subtract, multiply, and divide durations with ease
Installation
Add the following line to your Cargo.toml
file under [dependencies]
:
= "0.1.6"
Usage
use ;
Examples
- Formatting Time: Format time instances into custom strings.
- Time Arithmetic: Add or subtract durations from time instances.
- Timezone Conversion: Convert times between different timezones.
Links
- GitHub Repository: https://github.com/yourusername/time_duration_api
- Crates.io Package: https://crates.io/crates/time_duration_api
- lib.rs: https://lib.rs/crates/time_duration_api