Class TimeFormatKind

class ooodev.utils.kind.time_format_kind.TimeFormatKind(value)[source]

Specifies the format of the displayed time.

static from_str(s)[source]

Gets an TimeFormatKind instance from string.

Parameters:

s (str) – String that represents the name of an enum Name.

Raises:
  • ValueError – If input string is empty.

  • AttributeError – If unable to get TimeFormatKind instance.

Returns:

Enum instance.

Return type:

TimeFormatKind

DURATION_LONG = 5

Duration long

DURATION_SHORT = 4

Duration short

LONG_12H = 3

12h long

LONG_24H = 1

12h short

SHORT_12H = 2

12h short

SHORT_24H = 0

24h short