-
Notifications
You must be signed in to change notification settings - Fork 534
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
and_local_timezone naming #870
Comments
I think the issue here is that there are two different meanings for combining a
This is the reason for the |
Thank you! IMO:
That plus the fact the "local" does induce confusion (at least it did for me), I would tend to favor |
So we've been discussing this naming at my workplace for about 30min (while choosing naming for helpers we have written to handle fallbacks to either later or earlier time around DST changes), and we concluded that the clearest naming would be That clearly gives the intent for what may be confused (in particular makes it particularly hard to confuse it with the UTC conversion version). (Internally, we now use Wdyt? |
This sounds good to me! One option we had thought about originally was
The plan is to eventually have some methods for this within |
Hello,
I have a question about the naming of this function.
I don't understand what information the
local
is supposed to bear. What is a "local timezone" compared to a "timezone"?I'm not particularly familiar with all the timezone-related science, but I think I would have named it simply
NaiveDateTime::in_timezone -> DateTime<Tz>
(although I would understandwith_timezone
as well).How is the current naming better?
Thanks,
The text was updated successfully, but these errors were encountered: