altair.TimeLocale#

class altair.TimeLocale(date=Undefined, dateTime=Undefined, days=Undefined, months=Undefined, periods=Undefined, shortDays=Undefined, shortMonths=Undefined, time=Undefined, **kwds)#

TimeLocale schema wrapper

Mapping(required=[dateTime, date, time, periods, days, shortDays, months, shortMonths]) Locale definition for formatting dates and times.

Parameters:
datestring

The date (%x) format specifier (e.g., “%m/%d/%Y”).

dateTimestring

The date and time (%c) format specifier (e.g., “%a %b %e %X %Y”).

daysVector7string

The full names of the weekdays, starting with Sunday.

monthsVector12string

The full names of the months (starting with January).

periodsVector2string

The A.M. and P.M. equivalents (e.g., [“AM”, “PM”]).

shortDaysVector7string

The abbreviated names of the weekdays, starting with Sunday.

shortMonthsVector12string

The abbreviated names of the months (starting with January).

timestring

The time (%X) format specifier (e.g., “%H:%M:%S”).

__init__(date=Undefined, dateTime=Undefined, days=Undefined, months=Undefined, periods=Undefined, shortDays=Undefined, shortMonths=Undefined, time=Undefined, **kwds)#

Methods

__init__([date, dateTime, days, months, ...])

copy([deep, ignore])

Return a copy of the object

from_dict(dct[, validate, _wrapper_classes])

Construct class from a dictionary representation

from_json(json_string[, validate])

Instantiate the object from a valid JSON string

resolve_references([schema])

Resolve references in the context of this object's schema or root schema.

to_dict([validate, ignore, context])

Return a dictionary representation of the object

to_json([validate, ignore, context, indent, ...])

Emit the JSON representation for this object as a string.

validate(instance[, schema])

Validate the instance against the class schema in the context of the rootschema.

validate_property(name, value[, schema])

Validate a property against property schema in the context of the rootschema