.expect("we should be able to get the local datetime")
.year()
{
// Translators: This is a date format in the day divider without the
// year. For example, "Friday, May 5".
// Please use `-` before specifiers that add spaces on single
// digits. See `man strftime` or the documentation of g_date_time_format for the available specifiers: <https://docs.gtk.org/glib/method.DateTime.format.html>
gettext("%A, %B %-e")
}else{
// Translators: This is a date format in the day divider with the
// year. For ex. "Friday, May 5, 2023".
// Please use `-` before specifiers that add spaces on single
// digits. See `man strftime` or the documentation of g_date_time_format for the available specifiers: <https://docs.gtk.org/glib/method.DateTime.format.html>
gettext("%A, %B %-e, %Y")
};
date.format(&fmt)
.expect("we should be able to format the datetime")
// Translators: This is a date format in the day divider without the
// year. For example, "Friday, May 5".
// Please use `-` before specifiers that add spaces on single
// digits. See `man strftime` or the documentation of g_date_time_format for the available specifiers: <https://docs.gtk.org/glib/method.DateTime.format.html>
gettext("%A, %B %-e")
}else{
// Translators: This is a date format in the day divider with the
// year. For ex. "Friday, May 5, 2023".
// Please use `-` before specifiers that add spaces on single
// digits. See `man strftime` or the documentation of g_date_time_format for the available specifiers: <https://docs.gtk.org/glib/method.DateTime.format.html>