kittycad.models.unit_time_format.UnitTimeFormat

class kittycad.models.unit_time_format.UnitTimeFormat(value)[source][source]

Bases: str, enum.Enum

The valid types of time unit formats.

__init__()[source]

Attributes

SECOND

//en.wikipedia.org/wiki/Minute>

MINUTE

//en.wikipedia.org/wiki/Hour>

HOUR

//en.wikipedia.org/wiki/Day>

DAY

//en.wikipedia.org/wiki/Week>

WEEK

//en.wikipedia.org/wiki/Year>

YEAR

//en.wikipedia.org/wiki/Julian_year>

JULIAN_YEAR

//en.wikipedia.org/wiki/Gregorian_calendar>

GREGORIAN_YEAR

DAY = 'day'[source]

//en.wikipedia.org/wiki/Week>

Type

# <https

GREGORIAN_YEAR = 'gregorian_year'[source]
HOUR = 'hour'[source]

//en.wikipedia.org/wiki/Day>

Type

# <https

JULIAN_YEAR = 'julian_year'[source]

//en.wikipedia.org/wiki/Gregorian_calendar>

Type

# <https

MINUTE = 'minute'[source]

//en.wikipedia.org/wiki/Hour>

Type

# <https

SECOND = 'second'[source]

//en.wikipedia.org/wiki/Minute>

Type

# <https

WEEK = 'week'[source]

//en.wikipedia.org/wiki/Year>

Type

# <https

YEAR = 'year'[source]

//en.wikipedia.org/wiki/Julian_year>

Type

# <https

__annotations__ = {}[source]
__dict__ = mappingproxy({'_generate_next_value_': <function Enum._generate_next_value_>, '__module__': 'kittycad.models.unit_time_format', '__doc__': 'The valid types of time unit formats.', '__str__': <function UnitTimeFormat.__str__>, '__dict__': <attribute '__dict__' of 'UnitTimeFormat' objects>, '__weakref__': <attribute '__weakref__' of 'UnitTimeFormat' objects>, '_member_names_': ['SECOND', 'MINUTE', 'HOUR', 'DAY', 'WEEK', 'YEAR', 'JULIAN_YEAR', 'GREGORIAN_YEAR'], '_member_map_': {'SECOND': <UnitTimeFormat.SECOND: 'second'>, 'MINUTE': <UnitTimeFormat.MINUTE: 'minute'>, 'HOUR': <UnitTimeFormat.HOUR: 'hour'>, 'DAY': <UnitTimeFormat.DAY: 'day'>, 'WEEK': <UnitTimeFormat.WEEK: 'week'>, 'YEAR': <UnitTimeFormat.YEAR: 'year'>, 'JULIAN_YEAR': <UnitTimeFormat.JULIAN_YEAR: 'julian_year'>, 'GREGORIAN_YEAR': <UnitTimeFormat.GREGORIAN_YEAR: 'gregorian_year'>}, '_member_type_': <class 'str'>, '_value2member_map_': {'second': <UnitTimeFormat.SECOND: 'second'>, 'minute': <UnitTimeFormat.MINUTE: 'minute'>, 'hour': <UnitTimeFormat.HOUR: 'hour'>, 'day': <UnitTimeFormat.DAY: 'day'>, 'week': <UnitTimeFormat.WEEK: 'week'>, 'year': <UnitTimeFormat.YEAR: 'year'>, 'julian_year': <UnitTimeFormat.JULIAN_YEAR: 'julian_year'>, 'gregorian_year': <UnitTimeFormat.GREGORIAN_YEAR: 'gregorian_year'>}, 'SECOND': <UnitTimeFormat.SECOND: 'second'>, 'MINUTE': <UnitTimeFormat.MINUTE: 'minute'>, 'HOUR': <UnitTimeFormat.HOUR: 'hour'>, 'DAY': <UnitTimeFormat.DAY: 'day'>, 'WEEK': <UnitTimeFormat.WEEK: 'week'>, 'YEAR': <UnitTimeFormat.YEAR: 'year'>, 'JULIAN_YEAR': <UnitTimeFormat.JULIAN_YEAR: 'julian_year'>, 'GREGORIAN_YEAR': <UnitTimeFormat.GREGORIAN_YEAR: 'gregorian_year'>, '__repr__': <function Enum.__repr__>, '__format__': <function Enum.__format__>, '__new__': <function Enum.__new__>, '__annotations__': {}})[source]
__module__ = 'kittycad.models.unit_time_format'[source]
_generate_next_value_(start, count, last_values)[source]

Generate the next value when not given.

name: the name of the member start: the initial start value or None count: the number of existing members last_value: the last value assigned or None

_member_map_ = {'DAY': UnitTimeFormat.DAY, 'GREGORIAN_YEAR': UnitTimeFormat.GREGORIAN_YEAR, 'HOUR': UnitTimeFormat.HOUR, 'JULIAN_YEAR': UnitTimeFormat.JULIAN_YEAR, 'MINUTE': UnitTimeFormat.MINUTE, 'SECOND': UnitTimeFormat.SECOND, 'WEEK': UnitTimeFormat.WEEK, 'YEAR': UnitTimeFormat.YEAR}[source]
_member_names_ = ['SECOND', 'MINUTE', 'HOUR', 'DAY', 'WEEK', 'YEAR', 'JULIAN_YEAR', 'GREGORIAN_YEAR'][source]
_member_type_[source]

alias of str

_value2member_map_ = {'day': UnitTimeFormat.DAY, 'gregorian_year': UnitTimeFormat.GREGORIAN_YEAR, 'hour': UnitTimeFormat.HOUR, 'julian_year': UnitTimeFormat.JULIAN_YEAR, 'minute': UnitTimeFormat.MINUTE, 'second': UnitTimeFormat.SECOND, 'week': UnitTimeFormat.WEEK, 'year': UnitTimeFormat.YEAR}[source]