For finding timezones by the current time there
Project description
TimezoneTimeFinder
TimezoneTimeFinder is a package that lets you know in what timezones it's a specific time
-
24 hour version
-
getTimezones
GetTimezones is a function that lets you input the current time and it will respond with a list of time zones where it currently is that specific time.
from TimezoneTimeFinder import TimezoneTimeFinder24h print(TimezoneTimeFinder24h.getTimezone("13:29"))RESULT:
['Africa/Blantyre', 'Africa/Bujumbura', 'Africa/Cairo', 'Africa/Ceuta', 'Africa/Gaborone', 'Africa/Harare', 'Africa/Johannesburg', 'Africa/Juba', 'Africa/Khartoum', 'Africa/Kigali', 'Africa/Lubumbashi', 'Africa/Lusaka', 'Africa/Maputo', 'Africa/Maseru', 'Africa/Mbabane', 'Africa/Tripoli', 'Africa/Windhoek']
-
getTimezone
GetTimezone is a function that lets you input the current time and it will respond with a one time zone where it currently is that specific time.from TimezoneTimeFinder import TimezoneTimeFinder24h print(TimezoneTimeFinder24h.getTimezone("13:29"))RESULT:
Atlantic/Cape_Verde
Inputs:
-
Both functions takes an input of the time as a string with a colon deviding hours from minutes.
-
Both has a minuteCeck input that is turned on by default but by setting it as False it skips the checks for minutes and only looks for hours, wich means that you don't need to input the current minute.
-
-
12 hour version
-
getTimezones
from TimezoneTimeFinder import TimezoneTimeFinder12h print(TimezoneTimeFinder12h.getTimezones(time="00:20", AmPm="am"))
RESULT:
['Antarctica/Casey', 'Asia/Magadan', 'Asia/Sakhalin', 'Asia/Srednekolymsk', 'Pacific/Bougainville', 'Pacific/Efate', 'Pacific/Guadalcanal', 'Pacific/Kosrae', 'Pacific/Norfolk', 'Pacific/Noumea', 'Pacific/Pohnpei']
-
getTimezone
from TimezoneTimeFinder import TimezoneTimeFinder12h print(TimezoneTimeFinder12h.getTimezone(time="00:15", AmPm="am"))
RESULT:
Antarctica/Casey
Everything is the same as the 24h version exccept that you need to specify AM or PM usigng the AmPm input in the functions -
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file TimezoneTimeFinder-0.0.1.tar.gz.
File metadata
- Download URL: TimezoneTimeFinder-0.0.1.tar.gz
- Upload date:
- Size: 3.9 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.1 CPython/3.9.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
c6a90e7321c42fd9e52adfb56047fd89864693ab1d2f4b7515b2fc3f5461f206
|
|
| MD5 |
83f15bd32ad1831fb454077ded07650c
|
|
| BLAKE2b-256 |
90727d652b1b4478967a5d279468a501e1787e472623cd187e77403b01b5f347
|
File details
Details for the file TimezoneTimeFinder-0.0.1-py3-none-any.whl.
File metadata
- Download URL: TimezoneTimeFinder-0.0.1-py3-none-any.whl
- Upload date:
- Size: 5.4 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.1 CPython/3.9.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
ce058bafd081e4b0ecc94d4484358e8bc5c94a6570368a517a3302c12ef32f41
|
|
| MD5 |
620d0f74d9e6992be78f5979ca84b828
|
|
| BLAKE2b-256 |
3f191a9a9311d502b3327f5f4802db430240105af992d500c32cde13d4a9f674
|