Skip to content

Enum FormatLength

Length of formatted dates and times.

Cases

  • MEDIUM
  • LONG

Methods

parse

Returns the length for a case or its value (e.g. 'long').

public static parse(self|string $length): self
$length self|string
return self
throws InvalidArgumentException if the value isn't a valid length