date-formatter
A simple and lightweight date formatter crate for Rust. This crate provides functions for formatting, parsing, and performing calculations on dates.
Features
- No dependencies: This crate is implemented using only the Rust standard library, so it has no external dependencies.
- Easy to use: The API is simple and straightforward, making it easy to get started.
- Lightweight: The crate is small and has minimal overhead.
Usage
Add the following to your Cargo.toml file:
[]
= "0.1.0" # Replace with the latest version
Then, you can use the crate in your code:
use ;
use SystemTime;
Supported Formatting Symbols
%Y: Year, e.g., "2024"%m: Month, e.g., "12"%d: Day, e.g., "29"
Contributing
Contributions are welcome! Feel free to open an issue or submit a pull request.
License
This crate is licensed under the MIT License.