Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

TimezoneTimeFinder

Package Overview
Dependencies
Maintainers
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

TimezoneTimeFinder

For finding timezones by the current time there

  • 0.0.1
  • PyPI
  • Socket score

Maintainers
1

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

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
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc