Crate libwhen

Source
Expand description

This is the internal library for the when command line utility.

Using this crate directly is not recommended as it’s not maintained with a stable API interface. It primarily exists so that it can be compiled to web assembly independently of the CLI tool.

Structs§

InputExpr
Represents a human readable date expression
Location
Represents a timezone location.
TimeAtLocation
A tuple of time and location.

Enums§

LocationKind
The type of location.
TimeOfDay
Human readable time-of-day description.
ZoneRef
Reference to a timezone.

Functions§

find_zone
Tries to locate a zone by name
get_time_of_day
Given a datetime object returns a human readable time-of-day description.