这是indexloc提供的服务,不要输入任何密码
Skip to content
This repository was archived by the owner on Aug 31, 2025. It is now read-only.

SimonSapin/gregor

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

42 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Gregor

No Maintenance Intended

Simple implementation of the Gregorian calendar for Rust.

Gregorian rules are used for all time, which is not historically accurate before 1583.

  • UnixTimestamp represents an instant as a (possibly negative) integer number of seconds since the Unix Epoch, January 1st 1970 at midnight UTC. (There is no sub-second resolution.)
  • NaiveDateTime represents a date in the Gregorian calendar with components year, month, day, hour, minute, and second. By itself, it can not be interpreted as an instant in time.
  • DateTime is a NaiveDateTime together with a time zone.

#![no_std]

By default the crate uses #![no_std] so that it can be used in freestanding environments. If the system_time Cargo feature is enabled, it uses std to implement conversions to and from std::time::SystemTime.

About

Simple implementation of the Gregorian calendar for Rust

Resources

Stars

Watchers

Forks

Packages

No packages published

Contributors 3

  •  
  •  
  •  

Languages