Security News
Highlights from the 2024 Rails Community Survey
A record 2,709 developers participated in the 2024 Ruby on Rails Community Survey, revealing key tools, practices, and trends shaping the Rails ecosystem.
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
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
FAQs
For finding timezones by the current time there
We found that TimezoneTimeFinder demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
A record 2,709 developers participated in the 2024 Ruby on Rails Community Survey, revealing key tools, practices, and trends shaping the Rails ecosystem.
Security News
In 2023, data breaches surged 78% from zero-day and supply chain attacks, but developers are still buried under alerts that are unable to prevent these threats.
Security News
Solo open source maintainers face burnout and security challenges, with 60% unpaid and 60% considering quitting.