On 2019-08-15 23:23:06, D Haley wrote: > Package: undertime > Version: 1.7.0 > Severity: wishlist > > Dear Maintainer, > > I am reporting this here, as gitlab does not allow me to create an account - > please do forward upstream as needed. > > Having the ability to type in a name of a regional capital city to undertime > and have it recognised would be great. For example, "Moscow" works, however > "Boston" does not. Similarly, "Lagos" (population 21M) also is not valid. I > assume the English transliteration would be the best route forward. > > Perhaps as an arbitrary cutoff, a list such as from eg. here : > https://data.mongabay.com/cities_pop_01.htm could be used, with a population > cutoff specified in Millions. 2M : 170 cities, 4M : 73 cities.
Hello! That's a fair point. I thought about this a little, and settled on using whatever Python gave me, which is from: https://pypi.org/project/pytz/ ... which is based (more or less) on this list: https://en.wikipedia.org/wiki/List_of_tz_database_time_zones The list you provided is great except it doesn't specify the timezone, which basically makes it useless. ;) For making this work, I'd need a list that: * maps a string (city name or location) to a timezone * is reliably updated So far, the only thing that qualifies, as far as I know, is the tzdata stuff, which is why I'm using it. But I'd be happy to have another source! As a rule, however, it should be available offline. A. -- Il faut tout un village pour élever un enfant. - Proverbe africain