arrow-py / arrow-py/arrow

Create arrow timezone interface and wrapper

Open
#912 5 comments 0 reactions 1 assignee Claimed by @systemcatch View on GitHub
enhancement good first issue
Dominant language
Python
Stars
9.1k
Forks
784
PR merge metrics
No merged PRs in 30d

Description

## Feature Request

It would be useful for users to directly import an arrow timezone object and create Arrow timezones rather than having to use `datetime.timezone`, `ZoneInfo`, or `dateutil.tz.gettz`. This will allow for full feature encapsulation within Arrow, so users can create timezones like this:

```python
import arrow
arrow.now(tz=arrow.timezone("US/Pacific"))
```

This `arrow.timezone` wrapper can simply wrap the `TzinfoParser` and `dateutil.tz.gettz` logic and expose an easy-to-use interface for users.

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.