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.
- Attributes
- 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”).
- days
Vector7string
The full names of the weekdays, starting with Sunday.
- months
Vector12string
The full names of the months (starting with January).
- periods
Vector2string
The A.M. and P.M. equivalents (e.g., [“AM”, “PM”]).
- shortDays
Vector7string
The abbreviated names of the weekdays, starting with Sunday.
- shortMonths
Vector12string
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