Skip to main content

field_text

Function field_text 

Source
pub fn field_text(
    kind: &str,
    lang: Option<&str>,
    now: DateTime,
) -> Option<String>
Expand description

The text date/time field kind shows at now in a run of language lang (BCP 47, e.g. en-US). None when kind isn’t a date/time type this knows, now isn’t a real date, or the format needs names in a language other than English: the field keeps its saved text.