Skip to main content

load_database

Function load_database 

Source
pub fn load_database(paths: &[PathBuf]) -> Result<Database>
Expand description

Read every tzdata source file referenced by paths and parse it into a Database.

Directories are read non-recursively for files ending in .zi/.tab-free tzdata (we accept any regular file when given explicitly). Order is deterministic: paths in the order given, files within a directory sorted by name.