wx.DateTime.NameForm¶Class representing a name form.
This class describes the form of month or weekday names used in formatting a date. It contains attributes for the requested name length and the formatting context. It is used as a parameter to the GetWeekDayName and GetMonthName functions.
Added in version 4.3/wxWidgets-3.3.0.
Class Hierarchy¶
Inheritance diagram for class NameForm:
Methods Summary¶Constructor for a name form. |
|
Set the flag for abbreviated month or weekday names. |
|
Set the context for date formatting. |
|
Set the flag for full month or weekday names. |
|
Return the context of name usage. |
|
Return the flags describing the requested name length. |
|
Set the flag for shortest month or weekday names. |
|
Set the context for standalone use. |
Properties Summary¶See |
|
See |
Class API¶Possible constructors:
NameForm(flags=DateTime.NameFlags.Name_Full) -> None
Class representing a name form.
Constructor for a name form.
Initializes this object to use the given form of the name (full by default) in the formatting context.
Note that this constructor is not explicit, to allow the existing code which passes wx.DateTime.NameFlags to various functions now taking wx.DateTime.NameForm to work. Please beware of the implicit conversions here.
flags (DateTime.NameFlags)
None
Set the flag for abbreviated month or weekday names.
Set the context for date formatting.
In some languages, month and day names have different forms depending on whether they’re used on their own, e.g. as names of the months in the calendar, or as part of a date representation.
Use this function if you need to localize a date format or in another similar context.
See also
Set the flag for full month or weekday names.
Return the context of name usage.
Return the flags describing the requested name length.
Set the flag for shortest month or weekday names.
Set the context for standalone use.
See GetContext