system-time 11.0.0

A library for fetching the current time based on the system's locale settings.
Documentation

system-time

Locale-Aware System Time & Timestamp Utilities

crates.io docs.rs Rust 2024 License: MIT

Workspace Overview · API Docs · Agent Engineering Rules


Overview

Zero-dependency wall-clock date/time formatting and timestamp extraction respecting host locale settings.

This package is part of the ctares unified Rust 2024 workspace and follows the repository's strict module purity, formatting, and dependency-ordered release standards.

Responsibilities & Module Layout

  • fn — Current date, time, Unix epoch, and formatted timestamp helpers
  • enum / impl / const — Timezone offset and formatting definitions

Installation & Quick Start

cargo add system-time
use system_time::*;

let now: String = time();
assert!(!now.is_empty());

Verification

Run crate-scoped formatting, lint, and test checks from the workspace root:

cargo run -p crate-cli -- fmt --check
cargo clippy -p system-time --all-features --all-targets -- -D warnings
cargo test -p system-time --all-features

Documentation & Governance

License

This project is licensed under the MIT License. See the LICENSE file for details.

Contact

For inquiries, please contact the author at root@devhub.vip.