Socket
Socket
Sign inDemoInstall

TimezoneTimeFinder

Package Overview
Dependencies
0
Maintainers
1
Alerts
File Explorer

Install Socket

Detect and block malicious and high-risk dependencies

Install

    TimezoneTimeFinder

For finding timezones by the current time there


Maintainers
1

Readme

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

FAQs


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.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc