movement

Crates.iomovement
lib.rsmovement
version0.2.0
sourcesrc
created_at2023-06-10 06:15:47.83018
updated_at2023-06-12 20:11:50.977671
descriptionLibrary to help with time calculations
homepage
repositoryhttps://github.com/manorajesh/momento
max_upload_size
id886757
size12,574
mano (manorajesh)

documentation

README

movement

Build Status Downloads Version License

Simple library and command to help out with time calculations (e.g. 1:23 PM + 3:30)

Installation

cargo add movement

Usage

fn adding_with_str() {
    let mut watch = Watch::new("2:15:01 A.M", true);
    watch += "3:14";
    println!("{}", watch);
    // outputs 05:29:01 AM
}

fn subtracting_with_secs() {
    let mut watch = Watch::new("13:34", true);
    watch += 4343;
    println!("{}", watch);
    // outputs 02:46:23 PM
}
Commit count: 7

cargo fmt