Skip to main content

This Package designed to handle the DST(Day Light Savings)

Project description

This Package designed to handle the DST(Day Light Savings).

There is many functions that can help us to handle DST(Day Light Savings) in our code.

1- adjust_dst(zonename, date):- This Function used to convert the date with DST(Day Light Savings) like- 2023-04-22 04:30:00 is the DST(Day Light Savings) date and we want to auto handle the date accourding to normal date.

2- is_dst(zonename, date):- This Function is used to check the given date is DST or NOT if DST retun True Else False.

3- timezone_appender(zonename, date):- This Function is used to append the timezone in the date like 2023-04-22 04:30:00 IST.

4- timezone_appender_with_time_format(zonename, date):- This Function is used to append the timezone in the date with beautify date like April 05 2023 at 04:30 IST.

5- timezone_appender_with_time_format(zonename, date):- This Function is used to append the timezone in the date with beautify date like April 05 2023 at 04:30 IST.

6- adjust_zoneoffset(zonename, date):- This Function used to get the zone offset like -5:30 for UTC

7- adjust_zoneoffset_dst(zonename, date):- This Function used to get the zone offset like -5:00 for UTC with DST handled like in DST is will return -4:00 so this function convert -4:00 to -5:00 if the time period in DST.

values format for the function is-

zonename example- 'America/New_York' date example- any date like '2023-04-22 04:30:00' this format

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

timezone_handler-0.0.1.tar.gz (2.8 kB view details)

Uploaded Source

Built Distribution

timezone_handler-0.0.1-py3-none-any.whl (3.3 kB view details)

Uploaded Python 3

File details

Details for the file timezone_handler-0.0.1.tar.gz.

File metadata

  • Download URL: timezone_handler-0.0.1.tar.gz
  • Upload date:
  • Size: 2.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.8.10

File hashes

Hashes for timezone_handler-0.0.1.tar.gz
Algorithm Hash digest
SHA256 b750530e840cad94d121d4fb9becbfa1f7f4ad2976815c2c1fa910ddce006054
MD5 2f8cfe94065bd513f2469d1707972ea1
BLAKE2b-256 44541f1b204ae8538aa40c1a2a28008d3ed6d060d1e0cdc55ad871a581d96820

See more details on using hashes here.

File details

Details for the file timezone_handler-0.0.1-py3-none-any.whl.

File metadata

File hashes

Hashes for timezone_handler-0.0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 c0aea4f0720b9d5a2a9e4dbca301659c3be5887aed6718d3fdce5b27e8853b09
MD5 679e154f8e1c763df56e05a26e81d350
BLAKE2b-256 c0860b598c4ea015e7d9895d2f7640850550c00f72bc6841b2a385a695f8862f

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page