Skip to content

Commit 019cf8b

Browse files
committed
Describe timezone data loading in README
1 parent 8800c97 commit 019cf8b

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

README.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -176,13 +176,16 @@ In particular:
176176
or `geocoder.country_name_for_number`).
177177
* The carrier metadata is only loaded on the first use of one of the mapping functions (`carrier.name_for_number`
178178
or `carrier.name_for_valid_number`).
179+
* The timezone metadata is only loaded on the first use of one of the timezone functions (`time_zones_for_number`
180+
or `time_zones_for_geographical_number`).
179181
* The normal metadata for each region is only loaded on the first time that metadata for that region is needed.
180182

181183
If you need to ensure that the metadata memory use is accounted for at start of day (i.e. that a subsequent on-demand
182184
load of metadata will not cause memory exhaustion):
183185

184186
* Force-load the geocoding metadata by invoking `import phonenumbers.geocoder`.
185187
* Force-load the carrier metadata by invoking `import phonenumbers.carrier`.
188+
* Force-load the timezone metadata by invoking `import phonenumbers.timezone`.
186189
* Force-load the normal metadata by calling `phonenumbers.PhoneMetadata.load_all()`.
187190

188191
Project Layout

0 commit comments

Comments
 (0)