Skip to main content

Project description

timezone_solar is the Python implementation of Solar time zones. See the top-level project info for more on solar time zones.

timezone_solar provides lookup and conversion utilities for Solar time zones, which are based on the longitude of any location on Earth.

The solar time zones are intended as an alternative to Daylight Saving Time. Instead of haphazard regulations in each country and region of the world, this uses meridians of longitude to set time zone boundaries, just like ships at sea use every day. For those who want an alternative to Daylight Saving Time, we have to build that alternative.

It provides an interface compatible with datetime.tzinfo so that solar time zones based on increments of either an hour or each degree of longitude may be used in time stamps. There are 24 hour-based time zones and 360 time zones based on each degree of longitude.

Overview of Solar time zones

Solar time zones are based on the longitude of a location. Each time zone is defined around having local solar noon, on average, the same as noon on the clock.

Solar time zones are always in Standard Time. There are no Daylight Time changes, by definition. The main point is to have a way to opt out of Daylight Saving Time by using solar time.

The Solar time zones build upon existing standards.

  • Lines of longitude are a well-established standard.
  • Ships at sea use "nautical time" based on time zones 15 degrees of longitude wide.
  • Time zones (without daylight saving offsets) are based on average solar noon at the Prime Meridian. Standard Time in each time zone lines up with average solar noon on the meridian at the center of each time zone, at 15-degree of longitude increments.

15 degrees of longitude appears more than once above. That isn't a coincidence. It's derived from 360 degrees of rotation in a day, divided by 24 hours in a day. The result is 15 degrees of longitude representing 1 hour in Earth's rotation. That makes each time zone one hour wide. So Solar time zones use that too.

The Solar Time Zones proposal is intended as a potential de-facto standard which people can use in their local areas, providing for routine computational time conversion to and from local standard or daylight time. In order for the proposal to become a de-facto standard, made in force by the number of people using it, it starts with technical early adopters choosing to use it. At some point it would actually become an official alternative via publication of an Internet RFC and adding the new time zones into the Internet Assigned Numbers Authority (IANA) Time Zone Database files. The Time Zone Database feeds the time zone conversions used by computers including servers, desktops, phones and embedded devices.

There are normal variations of a matter of minutes between local solar noon and clock noon, depending on the latitude and time of year. That variation is always the same number of minutes as local solar noon differs from noon UTC at the same latitude on the Prime Meridian (0° longitude), due to seasonal effects of the tilt in Earth's axis relative to our orbit around the Sun.

The Solaer time zones also have another set of overlay time zones the width of 1 degree of longitude, which puts them in 4-minute intervals of time. These are a hyper-local niche for potential use by outdoor events or activities which must be scheduled around daylight. They can also be used by anyone who wants the middle of the scheduling day to coincide closely with local solar noon.

Online resources

Release files for timezone_solar 0.0.1

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for timezone_solar 0.0.1
File Size Uploaded
timezone_solar-0.0.1.tar.gz 28.4 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for timezone_solar 0.0.1
File Interpreter ABI Platform
timezone_solar-0.0.1-py3-none-any.whl Python 3 none any Details

Total release size: 57.4 kB

Release files / timezone_solar-0.0.1.tar.gz

Download URL timezone_solar-0.0.1.tar.gz
Size 28.4 kB
Tags Source
SHA-256 checksum
How to use checksums
0ad3bf04dff73f329e7e3b894b266511b40270ed6068aaf174546b634f45627e
BLAKE2b-256 checksum
How to use checksums
b36a69e29e0a6cf29afccb6ebd1827421590ed65489c8fc7f0c21850c527054f
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via python-requests/2.28.1

Release files / timezone_solar-0.0.1-py3-none-any.whl

Download URL timezone_solar-0.0.1-py3-none-any.whl
Size 29.0 kB
Tags Python 3
SHA-256 checksum
How to use checksums
6fd81992b35ae8a9e3ed9c60ebbc2bbc7284cbd40a823230efbce12009d43cb3
BLAKE2b-256 checksum
How to use checksums
98fe5c9a9790c91657806d3dc9e91cdba38eeb1bf08d56f97ca0369b5c81b551
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via python-requests/2.28.1

Release history Release notifications | RSS feed

This release

0.0.1 This release

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page