Skip to content

ENH: Use LocaleTime for date_field_name output #12806

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

Closed
BastiaanBergman opened this issue Apr 5, 2016 · 0 comments · Fixed by #18164
Closed

ENH: Use LocaleTime for date_field_name output #12806

BastiaanBergman opened this issue Apr 5, 2016 · 0 comments · Fixed by #18164
Labels
Compat pandas objects compatability with Numpy or Python functions Datetime Datetime data dtype
Milestone

Comments

@BastiaanBergman
Copy link

Instantiate LocaleTime and use the property .f_weekday to generate weekday and month names.

Currently datename strings are pulled from a hard coded (English) array in get_date_name_field() in tslib.py, better to pull these from a Locale adjusted array.

Code Sample:

pd.Timestamp("2016-04-06").weekday_name

Expected Output

e.g. for the a platform with Dutch locale:
'woensdag'

@jreback jreback added Datetime Datetime data dtype Compat pandas objects compatability with Numpy or Python functions labels Apr 6, 2016
@jreback jreback added this to the 0.18.1 milestone Apr 6, 2016
@jreback jreback modified the milestones: 0.18.2, 0.18.1 Apr 25, 2016
@jorisvandenbossche jorisvandenbossche modified the milestones: Next Major Release, 0.19.0 Aug 18, 2016
@jreback jreback modified the milestones: Next Major Release, 0.22.0 Nov 9, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Compat pandas objects compatability with Numpy or Python functions Datetime Datetime data dtype
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants