# DateTimeFormatInfo

Version: 0.5.0
Framework commit: d503df2befa756e681fcdc6250e9552dc7388bea
Canonical URL: /docs/0.5.0/api/ferroui-base/utilities/struct-datetimeformatinfo/

**struct** · [`ferroui-base`](/docs/0.5.0/api/ferroui-base/) · v0.5.0

```rust
struct DateTimeFormatInfo
```

The date and time conventions of a culture.

The instances handed out by `CultureInfo::date_time_format` are shared
and read-only; to change conventions clone the value, use the setters and
attach it to a culture with `CultureInfo::with_date_time_format`.

[View source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Base/utilities/date_time_format_info.rs#L51)

## Members

- [`new`](#function-new)
- [`invariant_info`](#function-invariant_info)
- [`current_info`](#function-current_info)
- [`calendar`](#function-calendar)
- [`short_date_pattern`](#function-short_date_pattern)
- [`set_short_date_pattern`](#function-set_short_date_pattern)
- [`long_date_pattern`](#function-long_date_pattern)
- [`set_long_date_pattern`](#function-set_long_date_pattern)
- [`short_time_pattern`](#function-short_time_pattern)
- [`set_short_time_pattern`](#function-set_short_time_pattern)
- [`long_time_pattern`](#function-long_time_pattern)
- [`set_long_time_pattern`](#function-set_long_time_pattern)
- [`full_date_time_pattern`](#function-full_date_time_pattern)
- [`set_full_date_time_pattern`](#function-set_full_date_time_pattern)
- [`month_day_pattern`](#function-month_day_pattern)
- [`set_month_day_pattern`](#function-set_month_day_pattern)
- [`year_month_pattern`](#function-year_month_pattern)
- [`set_year_month_pattern`](#function-set_year_month_pattern)
- [`rfc1123_pattern`](#function-rfc1123_pattern)
- [`sortable_date_time_pattern`](#function-sortable_date_time_pattern)
- [`universal_sortable_date_time_pattern`](#function-universal_sortable_date_time_pattern)
- [`am_designator`](#function-am_designator)
- [`set_am_designator`](#function-set_am_designator)
- [`pm_designator`](#function-pm_designator)
- [`set_pm_designator`](#function-set_pm_designator)
- [`date_separator`](#function-date_separator)
- [`set_date_separator`](#function-set_date_separator)
- [`time_separator`](#function-time_separator)
- [`set_time_separator`](#function-set_time_separator)
- [`first_day_of_week`](#function-first_day_of_week)
- [`set_first_day_of_week`](#function-set_first_day_of_week)
- [`calendar_week_rule`](#function-calendar_week_rule)
- [`set_calendar_week_rule`](#function-set_calendar_week_rule)
- [`day_names`](#function-day_names)
- [`set_day_names`](#function-set_day_names)
- [`abbreviated_day_names`](#function-abbreviated_day_names)
- [`set_abbreviated_day_names`](#function-set_abbreviated_day_names)
- [`shortest_day_names`](#function-shortest_day_names)
- [`set_shortest_day_names`](#function-set_shortest_day_names)
- [`month_names`](#function-month_names)
- [`set_month_names`](#function-set_month_names)
- [`abbreviated_month_names`](#function-abbreviated_month_names)
- [`set_abbreviated_month_names`](#function-set_abbreviated_month_names)
- [`get_day_name`](#function-get_day_name)
- [`get_abbreviated_day_name`](#function-get_abbreviated_day_name)
- [`get_shortest_day_name`](#function-get_shortest_day_name)
- [`get_month_name`](#function-get_month_name)
- [`month_genitive_names`](#function-month_genitive_names)
- [`set_month_genitive_names`](#function-set_month_genitive_names)
- [`abbreviated_month_genitive_names`](#function-abbreviated_month_genitive_names)
- [`set_abbreviated_month_genitive_names`](#function-set_abbreviated_month_genitive_names)
- [`get_abbreviated_month_name`](#function-get_abbreviated_month_name)
- [`get_era_name`](#function-get_era_name)
- [`set_era_name`](#function-set_era_name)

<a id="function-new"></a>

### new

```rust
fn new() -> DateTimeFormatInfo
```

Conventions with the values of the invariant culture (C#
`new DateTimeFormatInfo()`); change them with the setters.

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Base/utilities/date_time_format_info.rs#L86)

<a id="function-invariant_info"></a>

### invariant_info

```rust
fn invariant_info() -> Rc<DateTimeFormatInfo>
```

The conventions of the invariant culture.

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Base/utilities/date_time_format_info.rs#L126)

<a id="function-current_info"></a>

### current_info

```rust
fn current_info() -> Rc<DateTimeFormatInfo>
```

The conventions of the current culture.

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Base/utilities/date_time_format_info.rs#L131)

<a id="function-calendar"></a>

### calendar

```rust
fn calendar(self: &Self) -> GregorianCalendar
```

The calendar of the conventions; always the Gregorian one.

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Base/utilities/date_time_format_info.rs#L136)

<a id="function-short_date_pattern"></a>

### short_date_pattern

```rust
fn short_date_pattern(self: &Self) -> &str
```

The pattern of a short date (format `"d"`).

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Base/utilities/date_time_format_info.rs#L141)

<a id="function-set_short_date_pattern"></a>

### set_short_date_pattern

```rust
fn set_short_date_pattern(self: &mut Self, value: impl Into<String>)
```

Sets the pattern of a short date.

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Base/utilities/date_time_format_info.rs#L146)

<a id="function-long_date_pattern"></a>

### long_date_pattern

```rust
fn long_date_pattern(self: &Self) -> &str
```

The pattern of a long date (format `"D"`).

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Base/utilities/date_time_format_info.rs#L151)

<a id="function-set_long_date_pattern"></a>

### set_long_date_pattern

```rust
fn set_long_date_pattern(self: &mut Self, value: impl Into<String>)
```

Sets the pattern of a long date.

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Base/utilities/date_time_format_info.rs#L156)

<a id="function-short_time_pattern"></a>

### short_time_pattern

```rust
fn short_time_pattern(self: &Self) -> &str
```

The pattern of a short time (format `"t"`).

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Base/utilities/date_time_format_info.rs#L161)

<a id="function-set_short_time_pattern"></a>

### set_short_time_pattern

```rust
fn set_short_time_pattern(self: &mut Self, value: impl Into<String>)
```

Sets the pattern of a short time.

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Base/utilities/date_time_format_info.rs#L166)

<a id="function-long_time_pattern"></a>

### long_time_pattern

```rust
fn long_time_pattern(self: &Self) -> &str
```

The pattern of a long time (format `"T"`).

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Base/utilities/date_time_format_info.rs#L171)

<a id="function-set_long_time_pattern"></a>

### set_long_time_pattern

```rust
fn set_long_time_pattern(self: &mut Self, value: impl Into<String>)
```

Sets the pattern of a long time.

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Base/utilities/date_time_format_info.rs#L176)

<a id="function-full_date_time_pattern"></a>

### full_date_time_pattern

```rust
fn full_date_time_pattern(self: &Self) -> Cow<'_, str>
```

The pattern of a long date and long time (format `"F"`): the long
date pattern, a space and the long time pattern unless set explicitly.

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Base/utilities/date_time_format_info.rs#L182)

<a id="function-set_full_date_time_pattern"></a>

### set_full_date_time_pattern

```rust
fn set_full_date_time_pattern(self: &mut Self, value: impl Into<String>)
```

Sets the pattern of a long date and long time.

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Base/utilities/date_time_format_info.rs#L190)

<a id="function-month_day_pattern"></a>

### month_day_pattern

```rust
fn month_day_pattern(self: &Self) -> &str
```

The pattern of a month and day (format `"M"`).

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Base/utilities/date_time_format_info.rs#L195)

<a id="function-set_month_day_pattern"></a>

### set_month_day_pattern

```rust
fn set_month_day_pattern(self: &mut Self, value: impl Into<String>)
```

Sets the pattern of a month and day.

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Base/utilities/date_time_format_info.rs#L200)

<a id="function-year_month_pattern"></a>

### year_month_pattern

```rust
fn year_month_pattern(self: &Self) -> &str
```

The pattern of a year and month (format `"Y"`).

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Base/utilities/date_time_format_info.rs#L205)

<a id="function-set_year_month_pattern"></a>

### set_year_month_pattern

```rust
fn set_year_month_pattern(self: &mut Self, value: impl Into<String>)
```

Sets the pattern of a year and month.

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Base/utilities/date_time_format_info.rs#L210)

<a id="function-rfc1123_pattern"></a>

### rfc1123_pattern

```rust
fn rfc1123_pattern(self: &Self) -> &'static str
```

The pattern of the round-trip format `"R"` (RFC 1123).

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Base/utilities/date_time_format_info.rs#L215)

<a id="function-sortable_date_time_pattern"></a>

### sortable_date_time_pattern

```rust
fn sortable_date_time_pattern(self: &Self) -> &'static str
```

The pattern of the sortable format `"s"`.

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Base/utilities/date_time_format_info.rs#L220)

<a id="function-universal_sortable_date_time_pattern"></a>

### universal_sortable_date_time_pattern

```rust
fn universal_sortable_date_time_pattern(self: &Self) -> &'static str
```

The pattern of the universal sortable format `"u"`.

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Base/utilities/date_time_format_info.rs#L225)

<a id="function-am_designator"></a>

### am_designator

```rust
fn am_designator(self: &Self) -> &str
```

The designator of hours before noon.

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Base/utilities/date_time_format_info.rs#L230)

<a id="function-set_am_designator"></a>

### set_am_designator

```rust
fn set_am_designator(self: &mut Self, value: impl Into<String>)
```

Sets the designator of hours before noon.

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Base/utilities/date_time_format_info.rs#L235)

<a id="function-pm_designator"></a>

### pm_designator

```rust
fn pm_designator(self: &Self) -> &str
```

The designator of hours after noon.

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Base/utilities/date_time_format_info.rs#L240)

<a id="function-set_pm_designator"></a>

### set_pm_designator

```rust
fn set_pm_designator(self: &mut Self, value: impl Into<String>)
```

Sets the designator of hours after noon.

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Base/utilities/date_time_format_info.rs#L245)

<a id="function-date_separator"></a>

### date_separator

```rust
fn date_separator(self: &Self) -> &str
```

The text the `/` specifier of a custom format produces.

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Base/utilities/date_time_format_info.rs#L250)

<a id="function-set_date_separator"></a>

### set_date_separator

```rust
fn set_date_separator(self: &mut Self, value: impl Into<String>)
```

Sets the date separator.

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Base/utilities/date_time_format_info.rs#L255)

<a id="function-time_separator"></a>

### time_separator

```rust
fn time_separator(self: &Self) -> &str
```

The text the `:` specifier of a custom format produces.

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Base/utilities/date_time_format_info.rs#L260)

<a id="function-set_time_separator"></a>

### set_time_separator

```rust
fn set_time_separator(self: &mut Self, value: impl Into<String>)
```

Sets the time separator.

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Base/utilities/date_time_format_info.rs#L265)

<a id="function-first_day_of_week"></a>

### first_day_of_week

```rust
fn first_day_of_week(self: &Self) -> DayOfWeek
```

The first day of the week.

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Base/utilities/date_time_format_info.rs#L270)

<a id="function-set_first_day_of_week"></a>

### set_first_day_of_week

```rust
fn set_first_day_of_week(self: &mut Self, value: DayOfWeek)
```

Sets the first day of the week.

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Base/utilities/date_time_format_info.rs#L275)

<a id="function-calendar_week_rule"></a>

### calendar_week_rule

```rust
fn calendar_week_rule(self: &Self) -> CalendarWeekRule
```

The rule that determines the first week of a year.

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Base/utilities/date_time_format_info.rs#L280)

<a id="function-set_calendar_week_rule"></a>

### set_calendar_week_rule

```rust
fn set_calendar_week_rule(self: &mut Self, value: CalendarWeekRule)
```

Sets the rule that determines the first week of a year.

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Base/utilities/date_time_format_info.rs#L285)

<a id="function-day_names"></a>

### day_names

```rust
fn day_names(self: &Self) -> &[String; 7]
```

The full names of the days, indexed by `DayOfWeek` (Sunday first).

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Base/utilities/date_time_format_info.rs#L290)

<a id="function-set_day_names"></a>

### set_day_names

```rust
fn set_day_names(self: &mut Self, value: [String; 7])
```

Sets the full names of the days.

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Base/utilities/date_time_format_info.rs#L295)

<a id="function-abbreviated_day_names"></a>

### abbreviated_day_names

```rust
fn abbreviated_day_names(self: &Self) -> &[String; 7]
```

The abbreviated names of the days, indexed by `DayOfWeek`.

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Base/utilities/date_time_format_info.rs#L300)

<a id="function-set_abbreviated_day_names"></a>

### set_abbreviated_day_names

```rust
fn set_abbreviated_day_names(self: &mut Self, value: [String; 7])
```

Sets the abbreviated names of the days.

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Base/utilities/date_time_format_info.rs#L305)

<a id="function-shortest_day_names"></a>

### shortest_day_names

```rust
fn shortest_day_names(self: &Self) -> &[String; 7]
```

The shortest unique names of the days, indexed by `DayOfWeek`.

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Base/utilities/date_time_format_info.rs#L310)

<a id="function-set_shortest_day_names"></a>

### set_shortest_day_names

```rust
fn set_shortest_day_names(self: &mut Self, value: [String; 7])
```

Sets the shortest names of the days.

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Base/utilities/date_time_format_info.rs#L315)

<a id="function-month_names"></a>

### month_names

```rust
fn month_names(self: &Self) -> &[String; 13]
```

The full names of the months; the thirteenth entry is empty, as in .NET.

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Base/utilities/date_time_format_info.rs#L320)

<a id="function-set_month_names"></a>

### set_month_names

```rust
fn set_month_names(self: &mut Self, value: [String; 13])
```

Sets the full names of the months.

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Base/utilities/date_time_format_info.rs#L325)

<a id="function-abbreviated_month_names"></a>

### abbreviated_month_names

```rust
fn abbreviated_month_names(self: &Self) -> &[String; 13]
```

The abbreviated names of the months; the thirteenth entry is empty.

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Base/utilities/date_time_format_info.rs#L330)

<a id="function-set_abbreviated_month_names"></a>

### set_abbreviated_month_names

```rust
fn set_abbreviated_month_names(self: &mut Self, value: [String; 13])
```

Sets the abbreviated names of the months.

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Base/utilities/date_time_format_info.rs#L335)

<a id="function-get_day_name"></a>

### get_day_name

```rust
fn get_day_name(self: &Self, day_of_week: DayOfWeek) -> &str
```

The full name of a day.

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Base/utilities/date_time_format_info.rs#L340)

<a id="function-get_abbreviated_day_name"></a>

### get_abbreviated_day_name

```rust
fn get_abbreviated_day_name(self: &Self, day_of_week: DayOfWeek) -> &str
```

The abbreviated name of a day.

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Base/utilities/date_time_format_info.rs#L345)

<a id="function-get_shortest_day_name"></a>

### get_shortest_day_name

```rust
fn get_shortest_day_name(self: &Self, day_of_week: DayOfWeek) -> &str
```

The shortest name of a day.

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Base/utilities/date_time_format_info.rs#L350)

<a id="function-get_month_name"></a>

### get_month_name

```rust
fn get_month_name(self: &Self, month: i32) -> &str
```

The full name of a month, 1..=13. Panics for other values.

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Base/utilities/date_time_format_info.rs#L356)

<a id="function-month_genitive_names"></a>

### month_genitive_names

```rust
fn month_genitive_names(self: &Self) -> &[String; 13]
```

The full names of the months in the form a date with a day number
takes (.NET `MonthGenitiveNames`): "7 stycznia" beside "styczeń 2026".
The plain names for a culture that has no such form.

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Base/utilities/date_time_format_info.rs#L364)

<a id="function-set_month_genitive_names"></a>

### set_month_genitive_names

```rust
fn set_month_genitive_names(self: &mut Self, value: [String; 13])
```

Sets the full names of the months in the form a date with a day
number takes.

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Base/utilities/date_time_format_info.rs#L370)

<a id="function-abbreviated_month_genitive_names"></a>

### abbreviated_month_genitive_names

```rust
fn abbreviated_month_genitive_names(self: &Self) -> &[String; 13]
```

The abbreviated names of the months in the form a date with a day
number takes (.NET `AbbreviatedMonthGenitiveNames`). The plain
abbreviated names for a culture that has no such form.

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Base/utilities/date_time_format_info.rs#L377)

<a id="function-set_abbreviated_month_genitive_names"></a>

### set_abbreviated_month_genitive_names

```rust
fn set_abbreviated_month_genitive_names(self: &mut Self, value: [String; 13])
```

Sets the abbreviated names of the months in the form a date with a
day number takes.

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Base/utilities/date_time_format_info.rs#L383)

<a id="function-get_abbreviated_month_name"></a>

### get_abbreviated_month_name

```rust
fn get_abbreviated_month_name(self: &Self, month: i32) -> &str
```

The abbreviated name of a month, 1..=13. Panics for other values.

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Base/utilities/date_time_format_info.rs#L405)

<a id="function-get_era_name"></a>

### get_era_name

```rust
fn get_era_name(self: &Self, _era: i32) -> &str
```

The name of the only era of the Gregorian calendar (the `g` specifier).

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Base/utilities/date_time_format_info.rs#L411)

<a id="function-set_era_name"></a>

### set_era_name

```rust
fn set_era_name(self: &mut Self, value: impl Into<String>)
```

Sets the name of the era.

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Base/utilities/date_time_format_info.rs#L416)

## Trait implementations

- `Send`
- `Sync`
- `Freeze`
- `UnsafeUnpin`
- `Unpin`
- `UnwindSafe`
- `RefUnwindSafe`
- [`PropertyValue`](/docs/0.5.0/api/ferroui-base/trait-propertyvalue/)
- [`AnyValue`](/docs/0.5.0/api/ferroui-base/trait-anyvalue/)
- [`ClassDefaults`](/docs/0.5.0/api/ferroui-base/trait-classdefaults/)
- `Borrow<T>`
- `BorrowMut<T>`
- `CloneToUninit`
- `Into<U>`
- `From<T>`
- `TryInto<U>`
- `TryFrom<U>`
- `Any`
- `ToOwned`
- `ErasedDestructor`
- `IntoEither`
- `Clone`
- `Debug`
- `StructuralPartialEq`
- `PartialEq`
- `Eq`
- `Default`
- [`DateTimeFormatProvider`](/docs/0.5.0/api/ferroui-base/utilities/trait-datetimeformatprovider/)

## Availability

Extracted for `aarch64-apple-darwin`. Cargo features are listed in the [crate index](/docs/0.5.0/api/).
