Crate timekit

Source

Modules§

constants

Structs§

DateTime
Struct for holding the full date and time information.
TimeDelta
TimeDelta struct to represent a time difference similar to Python’s timedelta.

Enums§

TimeZone
Enum for representing time zones with precomputed UTC offsets in seconds.

Functions§

adjust_second_with_timezone
calculate_date_since_epoch
compute_total_seconds
days_in_month
Returns the number of days in a given month and year.
is_leap_year
Determines if a given year is a leap year.
now
Returns the current date and time adjusted for the specified time zone.