timezone-converter

Crates.iotimezone-converter
lib.rstimezone-converter
version0.1.0
sourcesrc
created_at2024-11-05 08:57:52.228419
updated_at2024-11-05 08:57:52.228419
descriptionA timezone conversion library that handles timezone conversions and information
homepagehttps://github.com/Egwau-Godfrey/time_zone_sync
repositoryhttps://github.com/Egwau-Godfrey/time_zone_sync
max_upload_size
id1436238
size9,750
Egwau Godfrey (Egwau-Godfrey)

documentation

https://docs.rs/timezone-converter

README

Timezone Converter

A Rust library for handling timezone conversions and retrieving timezone information with ease. This library wraps around chrono and chrono-tz to provide a simple interface for working with timezones.

Features

  • Convert times between any supported timezone
  • Get current time in different timezones
  • Retrieve timezone information (name, offset, DST status)
  • Calculate time differences between timezones
  • Error handling for invalid timezones and conversion failures

Installation

Add this to your Cargo.toml:

[dependencies]
timezone-converter = "0.1.0"
chrono = "0.4"
chrono-tz = "0.8"
Commit count: 4

cargo fmt