Skip to content

ENH: Use LocaleTime for date_field_name output #12806

Closed
@BastiaanBergman

Description

@BastiaanBergman

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'

Metadata

Metadata

Assignees

No one assigned

    Labels

    Compatpandas objects compatability with Numpy or Python functionsDatetimeDatetime data dtype

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions