Skip to content

REF: remove always-UTC arg from tz_convert, tz_convert_single #35154

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 28 commits into from
Jul 9, 2020

Conversation

jbrockmendel
Copy link
Member

No description provided.



def tz_convert(int64_t[:] vals, tzinfo tz1, tzinfo tz2):
def tz_convert(int64_t[:] vals, tzinfo tz):
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Could we rename this tz_convert_from_utc to make the intention clear?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

sure i guess

"""
Convert the val (in i8) from timezone1 to timezone2
Convert the val (in i8) from UTC to tz

This is a single timezone version of tz_convert
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

is this still required?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

updated

@jreback jreback added Clean Timezones Timezone data dtype labels Jul 7, 2020
@jreback jreback added this to the 1.1 milestone Jul 7, 2020
return np.array(converted, dtype=np.int64)


@cython.boundscheck(False)
@cython.wraparound(False)
cdef int64_t[:] _tz_convert_one_way(int64_t[:] vals, tzinfo tz, bint to_utc):
cdef int64_t[:] _tz_convert_one_way(int64_t[:] vals, tzinfo tz):
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

let's rename this too

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

updated+green

@jreback jreback merged commit 59128e3 into pandas-dev:master Jul 9, 2020
@jreback
Copy link
Contributor

jreback commented Jul 9, 2020

thanks @jbrockmendel

@jbrockmendel jbrockmendel deleted the ref-tslibs-next branch July 9, 2020 22:04
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Clean Timezones Timezone data dtype
Projects
None yet
Development

Successfully merging this pull request may close these issues.

9 participants